/external/chromium_org/third_party/skia/tests/ |
H A D | RegionTest.cpp | 12 static void Union(SkRegion* rgn, const SkIRect& rect) { argument 13 rgn->op(rect, SkRegion::kUnion_Op); 16 #define TEST_NO_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, !rgn.intersects(rect)) 17 #define TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect)) 18 #define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect)) 136 SkIRect r = iter.rect(); 151 // test rect 196 rand_rect(SkIRect* rect, SkRandom& rand) argument 204 test_rects(const SkIRect rect[], int count) argument 245 SkIRect rect[N]; local [all...] |
H A D | SerializationTest.cpp | 352 SkRect rect = SkRect::MakeXYWH(1, 2, 20, 30); local 354 rrect.setRectRadii(rect, corners);
|
/external/chromium_org/third_party/webrtc/modules/desktop_capture/ |
H A D | desktop_region_unittest.cc | 31 EXPECT_TRUE(it.rect().equals(rects[i])) 32 << it.rect().left() << "-" << it.rect().right() << "." 33 << it.rect().top() << "-" << it.rect().bottom() << " " 52 DesktopRect rect = DesktopRect::MakeXYWH(1, 2, 0, 0); local 53 r.AddRect(rect); 60 DesktopRect rect = DesktopRect::MakeXYWH(1, 2, 3, 4); local 61 r.AddRect(rect); 62 CompareRegion(r, &rect, [all...] |
/external/chromium_org/third_party/webrtc/modules/desktop_capture/win/ |
H A D | screen_capturer_win_magnifier.cc | 116 DesktopRect rect = GetScreenRect(current_screen_id_, current_device_key_); local 117 CreateCurrentFrameIfNecessary(rect.size()); 120 succeeded = CaptureImage(rect); 200 bool ScreenCapturerWinMagnifier::CaptureImage(const DesktopRect& rect) { argument 203 // Set the magnifier control to cover the captured rect. The content of the 207 rect.left(), rect.top(), 208 rect.width(), rect.height(), 212 << ". Rect = {" << rect [all...] |
/external/chromium_org/third_party/webrtc/modules/desktop_capture/x11/ |
H A D | x_server_pixel_buffer.cc | 236 void XServerPixelBuffer::CaptureRect(const DesktopRect& rect, argument 238 assert(rect.right() <= window_size_.width()); 239 assert(rect.bottom() <= window_size_.height()); 246 rect.left(), rect.top(), rect.width(), rect.height(), 247 rect.left(), rect.top()); 251 rect 268 FastBlit(uint8_t* image, const DesktopRect& rect, DesktopFrame* frame) argument 287 SlowBlit(uint8_t* image, const DesktopRect& rect, DesktopFrame* frame) argument [all...] |
/external/chromium_org/third_party/webrtc/test/win/ |
H A D | d3d_renderer.cc | 179 static const D3dCustomVertex rect[] = { local 190 memcpy(buf_data, &rect, sizeof(rect));
|
/external/chromium_org/ui/base/ime/ |
H A D | dummy_text_input_client.cc | 6 #include "ui/gfx/rect.h" 57 gfx::Rect* rect) const { 102 void DummyTextInputClient::EnsureCaretInRect(const gfx::Rect& rect) { argument
|
H A D | remote_input_method_win.cc | 19 #include "ui/gfx/rect.h" 93 gfx::Rect rect; local 94 if (!client->GetCompositionCharacterBounds(i, &rect)) 96 bounds.push_back(rect);
|
/external/chromium_org/ui/events/ |
H A D | event_processor_unittest.cc | 78 void set_bounds(gfx::Rect rect) { bounds_ = rect; } argument
|
/external/chromium_org/ui/gfx/ |
H A D | canvas_skia.cc | 13 #include "ui/gfx/rect.h" 118 void UpdateRenderText(const Rect& rect, argument 128 Rect display_rect = rect; 180 Rect rect(*width, INT_MAX); 182 ElideRectangleText(adjusted_text, font_list, rect.width(), rect.height(), 185 UpdateRenderText(rect, base::string16(), font_list, flags, 0, 208 Rect rect(*width, *height); 210 UpdateRenderText(rect, adjusted_text, font_list, flags, 0, 235 Rect rect(text_bound 395 Rect rect = display_rect; local [all...] |
H A D | screen_win.cc | 39 LPRECT rect, 37 EnumMonitorCallback(HMONITOR monitor, HDC hdc, LPRECT rect, LPARAM data) argument
|
H A D | skia_util.cc | 15 #include "ui/gfx/rect.h" 22 SkRect RectToSkRect(const Rect& rect) { argument 24 r.iset(rect.x(), rect.y(), rect.right(), rect.bottom()); 28 SkIRect RectToSkIRect(const Rect& rect) { argument 29 return SkIRect::MakeXYWH(rect.x(), rect.y(), rect 32 SkIRectToRect(const SkIRect& rect) argument 36 RectFToSkRect(const RectF& rect) argument 43 SkRectToRectF(const SkRect& rect) argument [all...] |
/external/chromium_org/ui/gfx/geometry/ |
H A D | rect_base_impl.h | 140 Contains(const Class& rect) const { 141 return (rect.x() >= x() && rect.right() <= right() && 142 rect.y() >= y() && rect.bottom() <= bottom()); 152 Intersects(const Class& rect) const { 153 return !(IsEmpty() || rect.IsEmpty() || 154 rect.x() >= right() || rect.right() <= x() || 155 rect 165 Intersect(const Class& rect) argument 189 Union(const Class& rect) argument 212 Subtract(const Class& rect) argument 250 AdjustToFit(const Class& rect) argument [all...] |
H A D | rect_unittest.cc | 9 #include "ui/gfx/geometry/rect.h" 41 Rect rect(value.rect_x, value.rect_y, value.rect_width, value.rect_height); 42 EXPECT_EQ(value.contained, rect.Contains(value.point_x, value.point_y)); 48 int x1; // rect 1 52 int x2; // rect 2 79 int x1; // rect 1 83 int x2; // rect 2 87 int x3; // rect 3: the union of rects 1 and 2 125 int x1; // rect 1 129 int x2; // rect 571 Rect rect; local [all...] |
/external/chromium_org/ui/gfx/win/ |
H A D | hwnd_util.cc | 12 #include "ui/gfx/rect.h" 148 // No parent or no parent rect. Center over the monitor the window is on. 208 RECT rect; local 209 GetWindowRect(window, &rect); 210 Point point = Point(base::i18n::IsRTL() ? rect.right : rect.left, rect.top);
|
/external/chromium_org/ui/gl/ |
H A D | gl_surface_wgl.cc | 191 RECT rect; local 192 if (!GetClientRect(window_, &rect)) { 205 rect.right - rect.left, 206 rect.bottom - rect.top, 258 RECT rect; local 259 if (!GetClientRect(window_, &rect)) 263 rect.right - rect 274 RECT rect; local [all...] |
/external/chromium_org/ui/native_theme/ |
H A D | common_theme.cc | 14 #include "ui/gfx/rect.h" 144 void CommonThemePaintComboboxArrow(SkCanvas* canvas, const gfx::Rect& rect) { argument 147 CommonThemeCreateCanvas(canvas)->DrawImageInt(*arrow, rect.x(), rect.y()); 152 const gfx::Rect& rect, 158 int position_y = rect.y() + rect.height() / 2; 159 canvas->drawLine(rect.x(), position_y, rect.right(), position_y, paint); 162 void CommonThemePaintMenuGutter(SkCanvas* canvas, const gfx::Rect& rect) { argument 150 CommonThemePaintMenuSeparator( SkCanvas* canvas, const gfx::Rect& rect, const NativeTheme::MenuSeparatorExtraParams& extra) argument 171 CommonThemePaintMenuBackground(SkCanvas* canvas, const gfx::Rect& rect) argument 179 CommonThemePaintMenuItemBackground(SkCanvas* canvas, NativeTheme::State state, const gfx::Rect& rect) argument [all...] |
H A D | native_theme_aura.cc | 17 #include "ui/gfx/rect.h" 112 SkRect rect = SkRect::MakeWH(SkIntToScalar(size.width()), local 117 path.addRoundRect(rect, radii); 128 const gfx::Rect& rect, 130 CommonThemePaintMenuItemBackground(canvas, state, rect); 135 const gfx::Rect& rect, 139 FallbackTheme::PaintArrowButton(gc, rect, direction, state); 145 gc, rect); local 159 PaintArrow(gc, rect, direction, arrow_color); 167 const gfx::Rect& rect) cons 125 PaintMenuItemBackground( SkCanvas* canvas, State state, const gfx::Rect& rect, const MenuListExtraParams& menu_list) const argument 133 PaintArrowButton( SkCanvas* gc, const gfx::Rect& rect, Part direction, State state) const argument 283 PaintDualPainter( NativeThemeAura::DualPainter* dual_painter, SkCanvas* sk_canvas, const gfx::Rect& rect, State state) const argument 296 PaintDualPainterTransition( NativeThemeAura::DualPainter* dual_painter, SkCanvas* sk_canvas, const gfx::Rect& rect, State startState, State endState, double progress) const argument [all...] |
/external/chromium_org/ui/views/bubble/ |
H A D | bubble_delegate.cc | 10 #include "ui/gfx/rect.h" 260 void BubbleDelegateView::SetAnchorRect(const gfx::Rect& rect) { argument 261 anchor_rect_ = rect; 277 // The argument rect has its origin at the bubble's arrow anchor point;
|
/external/chromium_org/ui/views/controls/button/ |
H A D | image_button.cc | 149 gfx::Rect rect = GetContentsBounds(); local 160 x = (rect.width() - image.width()) / 2; 162 x = rect.width() - image.width(); 165 y = (rect.height() - image.height()) / 2; 167 y = rect.height() - image.height(); 169 x += rect.x(); 170 y += rect.y();
|
/external/chromium_org/ui/views/controls/ |
H A D | prefix_selector.cc | 75 gfx::Rect rect(prefix_delegate_->GetVisibleBounds().origin(), gfx::Size()); 78 ConvertRectToScreen(prefix_delegate_, &rect); 79 return rect; 83 gfx::Rect* rect) const { 84 // TextInputClient::GetCompositionCharacterBounds is expected to fill |rect| 86 *rect = GetCaretBounds(); 134 void PrefixSelector::EnsureCaretInRect(const gfx::Rect& rect) { argument
|
H A D | progress_bar.cc | 45 SkRect rect; local 46 rect.set( 50 rect,
|
/external/chromium_org/ui/views/ |
H A D | painter.cc | 18 #include "ui/gfx/rect.h" 54 gfx::Rect rect(size); 55 rect.Inset(insets_); 56 canvas->DrawFocusRect(rect); 91 gfx::Rect rect(size); 92 rect.Inset(insets_); 93 canvas->DrawSolidFocusRect(rect, color_); 221 const gfx::Rect& rect) { 224 canvas->Translate(rect.OffsetFromOrigin()); 225 painter->Paint(canvas, rect 219 PaintPainterAt(gfx::Canvas* canvas, Painter* painter, const gfx::Rect& rect) argument [all...] |
/external/chromium_org/ui/views/window/ |
H A D | non_client_view.cc | 189 View* NonClientView::GetEventHandlerForRect(const gfx::Rect& rect) { argument 190 if (!UsePointBasedTargeting(rect)) 191 return View::GetEventHandlerForRect(rect); 204 gfx::RectF rect_in_child_coords_f(rect); 212 return View::GetEventHandlerForRect(rect); 306 bool NonClientFrameView::HitTestRect(const gfx::Rect& rect) const { 309 return !GetWidget()->client_view()->bounds().Intersects(rect);
|
/external/chromium_org/win8/metro_driver/ime/ |
H A D | text_service.cc | 397 const RECT rect = {}; local 398 return rect; 406 const RECT rect = { local 412 return rect; 416 RECT* rect) OVERRIDE { 426 SetRect(rect, left_top.x, left_top.y, right_bottom.x, right_bottom.y);
|