/external/fonttools/Lib/fontTools/pens/ |
D | boundsPen.py | 25 self.bounds = None 28 bounds = self.bounds 29 if bounds: 30 self.bounds = updateBounds(bounds, pt) 33 self.bounds = (x, y, x, y) 36 self.bounds = updateBounds(self.bounds, pt) 39 bounds = self.bounds 40 bounds = updateBounds(bounds, bcp1) 41 bounds = updateBounds(bounds, bcp2) 42 bounds = updateBounds(bounds, pt) [all …]
|
/external/chromium_org/chrome/browser/ui/panels/ |
D | panel_resize_browsertest.cc | 36 gfx::Rect bounds = panel->GetBounds(); in ResizePanel() local 40 mouse_location = bounds.origin(); in ResizePanel() 43 mouse_location.SetPoint(bounds.x() + bounds.width() / 2, bounds.y()); in ResizePanel() 46 mouse_location.SetPoint(bounds.right(), bounds.y()); in ResizePanel() 49 mouse_location.SetPoint(bounds.x(), bounds.y() + bounds.height() / 2); in ResizePanel() 52 mouse_location.SetPoint(bounds.right(), in ResizePanel() 53 bounds.y() + bounds.height() / 2); in ResizePanel() 56 mouse_location.SetPoint(bounds.x(), bounds.bottom()); in ResizePanel() 59 mouse_location.SetPoint(bounds.x() + bounds.width() / 2, in ResizePanel() 60 bounds.bottom()); in ResizePanel() [all …]
|
/external/chromium_org/chrome/browser/ui/window_sizer/ |
D | window_sizer.cc | 46 gfx::Rect* bounds, in GetPersistentState() argument 49 DCHECK(bounds); in GetPersistentState() 66 bounds->SetRect(left, top, std::max(0, right - left), in GetPersistentState() 89 gfx::Rect* bounds, in GetLastActiveWindowState() argument 124 *bounds = window->GetRestoredBounds(); in GetLastActiveWindowState() 148 const gfx::Rect& bounds) const OVERRIDE { in GetTargetDisplay() 173 return screen->GetDisplayMatching(bounds); in GetTargetDisplay() 235 gfx::Rect* bounds, in DetermineWindowBoundsAndShowState() argument 237 DCHECK(bounds); in DetermineWindowBoundsAndShowState() 241 *bounds = specified_bounds; in DetermineWindowBoundsAndShowState() [all …]
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
D | vg_context.h | 195 const VGfloat *bounds, in vg_shift_rectx() argument 200 if (bounds) { in vg_shift_rectx() 201 coords[2] = MIN2(coords[2], bounds[2]); in vg_shift_rectx() 203 if ((coords[0] + coords[2]) > (bounds[0] + bounds[2])) { in vg_shift_rectx() 204 coords[2] = (bounds[0] + bounds[2]) - coords[0]; in vg_shift_rectx() 210 const VGfloat *bounds, in vg_shift_recty() argument 215 if (bounds) { in vg_shift_recty() 216 coords[3] = MIN2(coords[3], bounds[3]); in vg_shift_recty() 217 if ((coords[1] + coords[3]) > (bounds[1] + bounds[3])) { in vg_shift_recty() 218 coords[3] = (bounds[1] + bounds[3]) - coords[1]; in vg_shift_recty() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/ |
D | vg_context.h | 195 const VGfloat *bounds, in vg_shift_rectx() argument 200 if (bounds) { in vg_shift_rectx() 201 coords[2] = MIN2(coords[2], bounds[2]); in vg_shift_rectx() 203 if ((coords[0] + coords[2]) > (bounds[0] + bounds[2])) { in vg_shift_rectx() 204 coords[2] = (bounds[0] + bounds[2]) - coords[0]; in vg_shift_rectx() 210 const VGfloat *bounds, in vg_shift_recty() argument 215 if (bounds) { in vg_shift_recty() 216 coords[3] = MIN2(coords[3], bounds[3]); in vg_shift_recty() 217 if ((coords[1] + coords[3]) > (bounds[1] + bounds[3])) { in vg_shift_recty() 218 coords[3] = (bounds[1] + bounds[3]) - coords[1]; in vg_shift_recty() [all …]
|
/external/chromium_org/third_party/skia/tests/ |
D | PathOpsBoundsTest.cpp | 66 SkPathOpsBounds bounds; in DEF_TEST() local 67 bounds.setEmpty(); in DEF_TEST() 68 bounds.add(1, 2, 3, 4); in DEF_TEST() 71 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST() 72 bounds.setEmpty(); in DEF_TEST() 75 bounds.add(ordinal); in DEF_TEST() 76 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST() 78 bounds.setPointBounds(topLeft); in DEF_TEST() 80 bounds.add(botRight); in DEF_TEST() 81 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST() [all …]
|
/external/skia/tests/ |
D | PathOpsBoundsTest.cpp | 66 SkPathOpsBounds bounds; in DEF_TEST() local 67 bounds.setEmpty(); in DEF_TEST() 68 bounds.add(1, 2, 3, 4); in DEF_TEST() 71 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST() 72 bounds.setEmpty(); in DEF_TEST() 75 bounds.add(ordinal); in DEF_TEST() 76 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST() 78 bounds.setPointBounds(topLeft); in DEF_TEST() 80 bounds.add(botRight); in DEF_TEST() 81 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST() [all …]
|
/external/chromium_org/third_party/skia/src/effects/ |
D | SkMatrixConvolutionImageFilter.cpp | 164 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() argument 171 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() argument 172 x = SkPin32(x, bounds.fLeft, bounds.fRight - 1); in fetch() 173 y = SkPin32(y, bounds.fTop, bounds.fBottom - 1); in fetch() 180 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() argument 181 x = (x - bounds.left()) % bounds.width() + bounds.left(); in fetch() 182 y = (y - bounds.top()) % bounds.height() + bounds.top(); in fetch() 183 if (x < bounds.left()) { in fetch() 184 x += bounds.width(); in fetch() 186 if (y < bounds.top()) { in fetch() [all …]
|
/external/chromium_org/third_party/WebKit/Source/platform/transforms/ |
D | TransformOperationsTest.cpp | 52 FloatBox bounds; in EmpiricallyTestBounds() local 54 EXPECT_TRUE(to.blendedBoundsForBox(box, from, minProgress, maxProgress, &bounds)); in EmpiricallyTestBounds() 75 ASSERT_PRED_FORMAT2(FloatBoxTest::AssertContains, bounds, empiricalBounds); in EmpiricallyTestBounds() 85 FloatBox bounds; in TEST() local 87 EXPECT_TRUE(toOps.blendedBoundsForBox(box, identityOperations, 0, 1, &bounds)); in TEST() 88 EXPECT_PRED_FORMAT2(FloatBoxTest::AssertAlmostEqual, FloatBox(0, 0, 0, 20, 20, 210), bounds); in TEST() 90 EXPECT_TRUE(identityOperations.blendedBoundsForBox(box, toOps, 0, 1, &bounds)); in TEST() 91 EXPECT_PRED_FORMAT2(FloatBoxTest::AssertAlmostEqual, FloatBox(0, 0, 0, 20, 20, 210), bounds); in TEST() 93 EXPECT_TRUE(identityOperations.blendedBoundsForBox(box, fromOps, 0, 1, &bounds)); in TEST() 94 EXPECT_PRED_FORMAT2(FloatBoxTest::AssertAlmostEqual, FloatBox(-30, 0, 0, 40, 30, 25), bounds); in TEST() [all …]
|
/external/chromium_org/ash/shelf/ |
D | overflow_button.cc | 55 gfx::Rect bounds(GetContentsBounds()); in PaintBackground() local 63 bounds.x() + ((bounds.width() - kButtonHoverSize) / 2) - 1, in PaintBackground() 64 bounds.y() + kBackgroundOffset - 1)); in PaintBackground() 68 bounds.x() + kBackgroundOffset - 1, in PaintBackground() 69 bounds.y() + ((bounds.height() - kButtonHoverSize) / 2) - 1)); in PaintBackground() 90 gfx::Rect bounds(GetContentsBounds()); in OnPaint() local 103 bounds = gfx::Rect( in OnPaint() 104 bounds.right() - background->width() - in OnPaint() 106 bounds.y() + (bounds.height() - background->height()) / 2, in OnPaint() 109 bounds = gfx::Rect( in OnPaint() [all …]
|
/external/chromium_org/ui/views/layout/ |
D | box_layout_unittest.cc | 42 EXPECT_EQ(gfx::Rect(0, 0, 10, 20), v1->bounds()); in TEST_F() 43 EXPECT_EQ(gfx::Rect(10, 0, 10, 20), v2->bounds()); in TEST_F() 56 EXPECT_EQ(gfx::Rect(0, 0, 20, 10), v1->bounds()); in TEST_F() 57 EXPECT_EQ(gfx::Rect(0, 10, 20, 10), v2->bounds()); in TEST_F() 70 EXPECT_EQ(gfx::Rect(10, 20, 10, 20), v1->bounds()); in TEST_F() 71 EXPECT_EQ(gfx::Rect(20, 20, 10, 20), v2->bounds()); in TEST_F() 78 EXPECT_EQ(gfx::Rect(10, 5, 10, 20), v1->bounds()); in TEST_F() 79 EXPECT_EQ(gfx::Rect(20, 5, 10, 20), v2->bounds()); in TEST_F() 92 EXPECT_EQ(gfx::Rect(7, 7, 10, 86), v1->bounds()); in TEST_F() 93 EXPECT_EQ(gfx::Rect(25, 7, 10, 86), v2->bounds()); in TEST_F() [all …]
|
/external/skia/src/effects/ |
D | SkMatrixConvolutionImageFilter.cpp | 113 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() argument 120 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() argument 121 x = SkPin32(x, bounds.fLeft, bounds.fRight - 1); in fetch() 122 y = SkPin32(y, bounds.fTop, bounds.fBottom - 1); in fetch() 129 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() argument 130 x = (x - bounds.left()) % bounds.width() + bounds.left(); in fetch() 131 y = (y - bounds.top()) % bounds.height() + bounds.top(); in fetch() 132 if (x < bounds.left()) { in fetch() 133 x += bounds.width(); in fetch() 135 if (y < bounds.top()) { in fetch() [all …]
|
/external/chromium_org/ash/wm/workspace/ |
D | magnetism_matcher.h | 37 MagnetismEdgeMatcher(const gfx::Rect& bounds, MagnetismEdge edge); 41 const gfx::Rect& bounds() const { return bounds_; } in bounds() function 48 bool ShouldAttach(const gfx::Rect& bounds); 57 static int GetPrimaryCoordinate(const gfx::Rect& bounds, MagnetismEdge edge) { in GetPrimaryCoordinate() argument 60 return bounds.y(); in GetPrimaryCoordinate() 62 return bounds.x(); in GetPrimaryCoordinate() 64 return bounds.bottom(); in GetPrimaryCoordinate() 66 return bounds.right(); in GetPrimaryCoordinate() 87 Range GetPrimaryRange(const gfx::Rect& bounds) const { in GetPrimaryRange() argument 91 return Range(bounds.y(), bounds.bottom()); in GetPrimaryRange() [all …]
|
D | workspace_layout_manager_unittest.cc | 53 gfx::Rect* bounds, in GetSavedWindowPlacement() argument 55 *bounds = initial_bounds_; in GetSavedWindowPlacement() 108 gfx::Rect bounds(10, 15, 25, 35); in TEST_F() local 109 window->SetBounds(bounds); in TEST_F() 118 EXPECT_EQ("10,15 25x35", window.get()->bounds().ToString()); in TEST_F() 140 Shell::GetPrimaryRootWindow()->bounds().Intersects(window->bounds())); in TEST_F() 190 Shell::GetPrimaryRootWindow()->bounds().Intersects(window->bounds())); in TEST_F() 192 EXPECT_EQ("-20,0 30x40", window->bounds().ToString()); in TEST_F() 198 Shell::GetPrimaryRootWindow()->bounds().Intersects(window->bounds())); in TEST_F() 199 EXPECT_EQ("-100,-100 30x40", window->bounds().ToString()); in TEST_F() [all …]
|
D | workspace_window_resizer.cc | 365 gfx::Rect bounds = CalculateBoundsForDrag(location_in_parent); in Drag() local 366 AdjustBoundsForMainWindow(sticky_size, &bounds); in Drag() 368 if (bounds != GetTarget()->bounds()) { in Drag() 390 LayoutAttachedWindows(&bounds); in Drag() 391 if (bounds != GetTarget()->bounds()) { in Drag() 397 GetTarget()->SetBounds(bounds); in Drag() 404 UpdateSnapPhantomWindow(location_in_parent, bounds); in Drag() 458 GetTarget()->bounds())) { in CompleteDrag() 494 gfx::Rect bounds(attached_windows_[i]->bounds()); in RevertDrag() local 495 bounds.set_x(last_x); in RevertDrag() [all …]
|
D | workspace_window_resizer_unittest.cc | 82 gfx::Rect root_bounds(root->bounds()); in SetUp() 187 void InitTouchResizeWindow(const gfx::Rect& bounds, int window_component) { in InitTouchResizeWindow() argument 191 bounds)); in InitTouchResizeWindow() 225 EXPECT_EQ("0,300 500x300", window_->bounds().ToString()); in TEST_F() 226 EXPECT_EQ("500,200 100x200", window2_->bounds().ToString()); in TEST_F() 231 EXPECT_EQ("0,300 780x300", window_->bounds().ToString()); in TEST_F() 232 EXPECT_EQ("780,200 20x200", window2_->bounds().ToString()); in TEST_F() 236 EXPECT_EQ("0,300 500x300", window_->bounds().ToString()); in TEST_F() 237 EXPECT_EQ("500,200 100x200", window2_->bounds().ToString()); in TEST_F() 242 EXPECT_EQ("0,300 400x300", window_->bounds().ToString()); in TEST_F() [all …]
|
D | magnetism_matcher.cc | 53 MagnetismEdgeMatcher::MagnetismEdgeMatcher(const gfx::Rect& bounds, in MagnetismEdgeMatcher() argument 55 : bounds_(bounds), in MagnetismEdgeMatcher() 63 bool MagnetismEdgeMatcher::ShouldAttach(const gfx::Rect& bounds) { in ShouldAttach() argument 68 GetPrimaryCoordinate(bounds, FlipEdge(edge_)))) { in ShouldAttach() 69 const Range range(GetSecondaryRange(bounds)); in ShouldAttach() 80 const Range primary_range(GetPrimaryRange(bounds)); in ShouldAttach() 83 UpdateRanges(GetSecondaryRange(bounds)); in ShouldAttach() 123 MagnetismMatcher::MagnetismMatcher(const gfx::Rect& bounds, uint32 edges) in MagnetismMatcher() argument 126 matchers_.push_back(new MagnetismEdgeMatcher(bounds, MAGNETISM_EDGE_TOP)); in MagnetismMatcher() 128 matchers_.push_back(new MagnetismEdgeMatcher(bounds, MAGNETISM_EDGE_LEFT)); in MagnetismMatcher() [all …]
|
/external/chromium_org/ash/wm/ |
D | toplevel_window_event_handler_unittest.cc | 102 gfx::Size size = w1->bounds().size(); in TEST_F() 105 EXPECT_EQ("100,100", w1->bounds().origin().ToString()); in TEST_F() 107 EXPECT_EQ(size.ToString(), w1->bounds().size().ToString()); in TEST_F() 111 EXPECT_EQ("200,200", w1->bounds().origin().ToString()); in TEST_F() 113 EXPECT_EQ(size.ToString(), w1->bounds().size().ToString()); in TEST_F() 118 gfx::Point position = w1->bounds().origin(); in TEST_F() 121 EXPECT_EQ(position.ToString(), w1->bounds().origin().ToString()); in TEST_F() 123 EXPECT_EQ(gfx::Size(200, 200).ToString(), w1->bounds().size().ToString()); in TEST_F() 132 gfx::Point position = w1->bounds().origin(); in TEST_F() 137 EXPECT_EQ(position.ToString(), w1->bounds().origin().ToString()); in TEST_F() [all …]
|
D | workspace_controller_unittest.cc | 104 aura::Window* CreateBrowserLikeWindow(const gfx::Rect& bounds) { in CreateBrowserLikeWindow() argument 106 window->SetBounds(bounds); in CreateBrowserLikeWindow() 113 aura::Window* CreatePopupLikeWindow(const gfx::Rect& bounds) { in CreatePopupLikeWindow() argument 114 aura::Window* window = CreateTestWindowInShellWithBounds(bounds); in CreatePopupLikeWindow() 120 const gfx::Rect& bounds) { in CreateTestPanel() argument 125 bounds); in CreateTestPanel() 142 return Shell::GetScreen()->GetDisplayNearestWindow(window).bounds(); in GetFullscreenBounds() 177 EXPECT_EQ("0,0 250x251", w1->bounds().ToString()); in TEST_F() 195 EXPECT_EQ("0,0 250x251", w1->bounds().ToString()); in TEST_F() 204 w1->bounds().width()); in TEST_F() [all …]
|
D | system_gesture_event_filter_unittest.cc | 241 gfx::Rect bounds(0, 0, 600, 600); in TEST_F() local 244 new ResizableWidgetDelegate, root_window, bounds); in TEST_F() 263 toplevel->GetNativeWindow()->SetBounds(bounds); in TEST_F() 270 toplevel->GetNativeWindow()->SetBounds(bounds); in TEST_F() 332 gfx::Rect bounds(250, 150, 100, 100); in TEST_F() local 335 new MaxSizeWidgetDelegate, root_window, bounds); in TEST_F() 341 gfx::Point(bounds.x() + 10, bounds.y() + 30), in TEST_F() 342 gfx::Point(bounds.x() + 30, bounds.y() + 20), in TEST_F() 354 toplevel->GetNativeWindow()->SetBounds(bounds); in TEST_F() 361 toplevel->GetNativeWindow()->SetBounds(bounds); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/ui/views/frame/ |
D | opaque_browser_frame_view_layout_unittest.cc | 246 EXPECT_EQ("428,1 25x18", maximize_button_->bounds().ToString()); in ExpectBasicWindowBounds() 247 EXPECT_EQ("402,1 26x18", minimize_button_->bounds().ToString()); in ExpectBasicWindowBounds() 248 EXPECT_EQ("0,0 0x0", restore_button_->bounds().ToString()); in ExpectBasicWindowBounds() 249 EXPECT_EQ("453,1 43x18", close_button_->bounds().ToString()); in ExpectBasicWindowBounds() 301 EXPECT_EQ("0,0 0x0", maximize_button_->bounds().ToString()); in TEST_F() 302 EXPECT_EQ("403,0 26x18", minimize_button_->bounds().ToString()); in TEST_F() 303 EXPECT_EQ("429,0 25x18", restore_button_->bounds().ToString()); in TEST_F() 304 EXPECT_EQ("454,0 46x18", close_button_->bounds().ToString()); in TEST_F() 327 EXPECT_EQ("0,0 0x0", maximize_button_->bounds().ToString()); in TEST_F() 328 EXPECT_EQ("403,0 26x20", minimize_button_->bounds().ToString()); in TEST_F() [all …]
|
D | browser_view_browsertest.cc | 48 void SetDevToolsBounds(const gfx::Rect& bounds) { in SetDevToolsBounds() argument 49 DevToolsWindowTesting::Get(devtools_)->SetInspectedPageBounds(bounds); in SetDevToolsBounds() 122 EXPECT_EQ(full_bounds, devtools_web_view()->bounds()); in IN_PROC_BROWSER_TEST_F() 123 EXPECT_EQ(full_bounds, contents_web_view()->bounds()); in IN_PROC_BROWSER_TEST_F() 128 EXPECT_EQ(full_bounds, devtools_web_view()->bounds()); in IN_PROC_BROWSER_TEST_F() 132 EXPECT_EQ(full_bounds, devtools_web_view()->bounds()); in IN_PROC_BROWSER_TEST_F() 133 EXPECT_EQ(small_bounds, contents_web_view()->bounds()); in IN_PROC_BROWSER_TEST_F() 137 EXPECT_EQ(full_bounds, devtools_web_view()->bounds()); in IN_PROC_BROWSER_TEST_F() 138 EXPECT_EQ(small_bounds, contents_web_view()->bounds()); in IN_PROC_BROWSER_TEST_F() 142 EXPECT_EQ(full_bounds, devtools_web_view()->bounds()); in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/shapes/ |
D | RectangleShape.cpp | 58 const FloatRect& bounds = shapeMarginBounds(); in getExcludedInterval() local 59 if (bounds.isEmpty()) in getExcludedInterval() 65 if (y2 < bounds.y() || y1 >= bounds.maxY()) in getExcludedInterval() 68 float x1 = bounds.x(); in getExcludedInterval() 69 float x2 = bounds.maxX(); in getExcludedInterval() 75 if (y2 < bounds.y() + marginRadiusY) { in getExcludedInterval() 76 float yi = y2 - bounds.y() - marginRadiusY; in getExcludedInterval() 78 x1 = bounds.x() + marginRadiusX - xi; in getExcludedInterval() 79 x2 = bounds.maxX() - marginRadiusX + xi; in getExcludedInterval() 80 } else if (y1 > bounds.maxY() - marginRadiusY) { in getExcludedInterval() [all …]
|
/external/chromium_org/ui/views/window/ |
D | dialog_client_view_unittest.cc | 69 return client_view_->bounds(); in GetUpdatedClientBounds() 77 EXPECT_EQ(preferred_size.height(), contents_->bounds().height()); in CheckContentsIsSetToPreferredSize() 78 EXPECT_LE(preferred_size.width(), contents_->bounds().width()); in CheckContentsIsSetToPreferredSize() 79 EXPECT_EQ(contents_->bounds().origin(), client_bounds.origin()); in CheckContentsIsSetToPreferredSize() 80 EXPECT_EQ(contents_->bounds().right(), client_bounds.right()); in CheckContentsIsSetToPreferredSize() 169 EXPECT_EQ(GetContentsView()->bounds().bottom(), in TEST_F() 170 client_view()->bounds().bottom()); in TEST_F() 177 EXPECT_LT(GetContentsView()->bounds().bottom(), in TEST_F() 178 client_view()->bounds().bottom()); in TEST_F() 179 gfx::Size no_extra_view_size = client_view()->bounds().size(); in TEST_F() [all …]
|
/external/chromium_org/ash/wm/dock/ |
D | docked_window_resizer_unittest.cc | 75 aura::Window* CreateTestWindow(const gfx::Rect& bounds) { in CreateTestWindow() argument 80 bounds); in CreateTestWindow() 93 aura::Window* CreateModalWindow(const gfx::Rect& bounds) { in CreateModalWindow() argument 100 if (bounds.IsEmpty()) { in CreateModalWindow() 104 Shell::GetScreen()->GetDisplayMatching(bounds); in CreateModalWindow() 107 gfx::Point origin = bounds.origin(); in CreateModalWindow() 109 window->SetBounds(gfx::Rect(origin, bounds.size())); in CreateModalWindow() 110 aura::client::ParentWindowWithContext(window, root, bounds); in CreateModalWindow() 133 window->bounds().origin() + gfx::Vector2d(dx, dy); in DragStartAtOffsetFromWindowOrigin() 144 window->bounds().origin() + gfx::Vector2d(dx, dy); in ResizeStartAtOffsetFromWindowOrigin() [all …]
|