HomeSort by relevance Sort by last modified time
    Searched full:bounds (Results 326 - 350 of 5192) sorted by null

<<11121314151617181920>>

  /external/chromium_org/chrome/browser/ui/views/location_bar/
location_bar_layout.cc 133 void LocationBarLayout::LayoutPass3(gfx::Rect* bounds, int* available_width) {
162 int x = (position_ == LEFT_EDGE) ? (bounds->x() + padding) :
163 (bounds->right() - padding - (*i)->computed_width);
165 bounds->set_width(bounds->width() - padding - (*i)->computed_width);
167 bounds->set_x(bounds->x() + padding + (*i)->computed_width);
169 bounds->set_width(bounds->width() - item_edit_padding_);
171 bounds->set_x(bounds->x() + item_edit_padding_)
    [all...]
  /external/chromium_org/third_party/skia/experimental/Intersection/
CubicReduceOrder_Test.cpp 143 _Rect bounds = {DBL_MAX, DBL_MAX, -DBL_MAX, -DBL_MAX}; local
144 find_tight_bounds(cubic, bounds);
145 if ( (!AlmostEqualUlps(reduce[0].x, bounds.left) && !AlmostEqualUlps(reduce[0].x, bounds.right))
146 || (!AlmostEqualUlps(reduce[0].y, bounds.top) && !AlmostEqualUlps(reduce[0].y, bounds.bottom))
147 || (!AlmostEqualUlps(reduce[1].x, bounds.left) && !AlmostEqualUlps(reduce[1].x, bounds.right))
148 || (!AlmostEqualUlps(reduce[1].y, bounds.top) && !AlmostEqualUlps(reduce[1].y, bounds.bottom)))
    [all...]
TestUtilities.cpp 42 void find_tight_bounds(const Cubic& cubic, _Rect& bounds) {
46 find_tight_bounds(cubicPair.first(), bounds);
48 bounds.add(cubicPair.first()[0]);
49 bounds.add(cubicPair.first()[3]);
52 find_tight_bounds(cubicPair.second(), bounds);
54 bounds.add(cubicPair.second()[0]);
55 bounds.add(cubicPair.second()[3]);
  /external/chromium_org/third_party/skia/src/effects/
SkXfermodeImageFilter.cpp 64 SkIRect bounds, foregroundBounds; local
69 if (!applyCropRect(ctx, background, backgroundOffset, &bounds)) {
70 bounds.setEmpty();
73 bounds.join(foregroundBounds);
74 if (bounds.isEmpty()) {
78 SkAutoTUnref<SkBaseDevice> device(proxy->createDevice(bounds.width(), bounds.height()));
83 canvas.translate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top()));
95 offset->fX = bounds.left()
    [all...]
SkGpuBlurUtils.cpp 54 float bounds[2]) {
58 texture, direction, radius, sigma, useBounds, bounds));
72 float bounds[2] = { 0.0f, 1.0f }; local
75 direction, radius, sigma, false, bounds);
84 bounds[0] = SkScalarToFloat(srcRect.left()) / texture->width();
85 bounds[1] = SkScalarToFloat(srcRect.right()) / texture->width();
94 bounds[0] = SkScalarToFloat(srcRect.top()) / texture->height();
95 bounds[1] = SkScalarToFloat(srcRect.bottom()) / texture->height();
105 // Blur radius covers srcRect; use bounds over entire draw
107 direction, radius, sigma, true, bounds);
    [all...]
  /external/chromium_org/ui/views/layout/
box_layout.cc 84 gfx::Rect bounds(x, y, child_area.width(), child_area.height());
86 bounds.set_width(child->GetPreferredSize().width() + padding);
87 if (bounds.width() > 0)
88 x += bounds.width() + between_child_spacing_;
90 bounds.set_height(child->GetHeightForWidth(bounds.width()) + padding);
91 if (bounds.height() > 0)
92 y += bounds.height() + between_child_spacing_;
94 // Clamp child view bounds to |child_area|.
95 bounds.Intersect(child_area)
    [all...]
  /external/skia/experimental/Intersection/
CubicReduceOrder_Test.cpp 143 _Rect bounds = {DBL_MAX, DBL_MAX, -DBL_MAX, -DBL_MAX}; local
144 find_tight_bounds(cubic, bounds);
145 if ( (!AlmostEqualUlps(reduce[0].x, bounds.left) && !AlmostEqualUlps(reduce[0].x, bounds.right))
146 || (!AlmostEqualUlps(reduce[0].y, bounds.top) && !AlmostEqualUlps(reduce[0].y, bounds.bottom))
147 || (!AlmostEqualUlps(reduce[1].x, bounds.left) && !AlmostEqualUlps(reduce[1].x, bounds.right))
148 || (!AlmostEqualUlps(reduce[1].y, bounds.top) && !AlmostEqualUlps(reduce[1].y, bounds.bottom)))
    [all...]
TestUtilities.cpp 42 void find_tight_bounds(const Cubic& cubic, _Rect& bounds) {
46 find_tight_bounds(cubicPair.first(), bounds);
48 bounds.add(cubicPair.first()[0]);
49 bounds.add(cubicPair.first()[3]);
52 find_tight_bounds(cubicPair.second(), bounds);
54 bounds.add(cubicPair.second()[0]);
55 bounds.add(cubicPair.second()[3]);
  /external/skia/src/effects/
SkXfermodeImageFilter.cpp 64 SkIRect bounds, foregroundBounds; local
69 if (!applyCropRect(ctx, background, backgroundOffset, &bounds)) {
70 bounds.setEmpty();
73 bounds.join(foregroundBounds);
74 if (bounds.isEmpty()) {
78 SkAutoTUnref<SkBaseDevice> device(proxy->createDevice(bounds.width(), bounds.height()));
83 canvas.translate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top()));
95 offset->fX = bounds.left()
    [all...]
SkGpuBlurUtils.cpp 54 float bounds[2]) {
58 texture, direction, radius, sigma, useBounds, bounds));
72 float bounds[2] = { 0.0f, 1.0f }; local
75 direction, radius, sigma, false, bounds);
84 bounds[0] = SkScalarToFloat(srcRect.left()) / texture->width();
85 bounds[1] = SkScalarToFloat(srcRect.right()) / texture->width();
94 bounds[0] = SkScalarToFloat(srcRect.top()) / texture->height();
95 bounds[1] = SkScalarToFloat(srcRect.bottom()) / texture->height();
105 // Blur radius covers srcRect; use bounds over entire draw
107 direction, radius, sigma, true, bounds);
    [all...]
  /frameworks/base/core/java/android/view/
TouchDelegate.java 26 * actual view bounds. The view whose touch area is changed is called the delegate view. This
28 * instance that specifies the bounds that should be mapped to the delegate and the delegate
43 * Bounds in local coordinates of the containing view that should be mapped to the delegate
86 * @param bounds Bounds in local coordinates of the containing view that should be mapped to
90 public TouchDelegate(Rect bounds, View delegateView) {
91 mBounds = bounds;
94 mSlopBounds = new Rect(bounds);
100 * Will forward touch events to the delegate view if the event is within the bounds
115 Rect bounds = mBounds local
    [all...]
  /packages/apps/Gallery2/jni/filters/
wbalance.c 107 int bounds = 5; local
108 if (x<0) x = bounds;
109 if (y<0) y = bounds;
110 if (x>=(iw-bounds)) x = (iw-bounds-1);
111 if (y>=(ih-bounds)) y = (ih-bounds-1);
112 int startx = x - bounds;
113 int starty = y - bounds;
114 int endx = x + bounds;
    [all...]
  /packages/apps/Gallery2/src/com/android/photos/shims/
BitmapJobDrawable.java 78 protected void onBoundsChange(Rect bounds) {
79 super.onBoundsChange(bounds);
85 Rect bounds = getBounds(); local
88 canvas.clipRect(bounds);
90 canvas.rotate(mRotation, bounds.centerX(), bounds.centerY());
95 canvas.drawRect(bounds, mPaint);
100 Rect bounds = getBounds(); local
101 if (mBitmap == null || bounds.isEmpty()) {
111 int vwidth = bounds.width()
    [all...]
  /external/chromium_org/ash/system/tray/
special_popup_row.cc 119 gfx::Rect bounds(button_container_->GetPreferredSize());
120 bounds.set_height(content_bounds.height());
122 container_bounds.ClampToCenteredSize(bounds.size());
126 bounds = content_->bounds();
127 bounds.set_width(button_container_->x());
128 content_->SetBoundsRect(bounds);
  /external/chromium_org/chrome/browser/ui/views/autofill/
autofill_popup_base_view_browsertest.cc 85 gfx::Rect bounds(0, 0, 5, 5);
86 gfx::Point point = bounds.CenterPoint();
87 EXPECT_CALL(mock_delegate_, popup_bounds()).WillRepeatedly(ReturnRef(bounds));
109 // Tapping outside the bounds clears any selection.
116 gfx::Rect bounds(0, 0, 5, 5);
117 gfx::Point point = bounds.CenterPoint();
118 EXPECT_CALL(mock_delegate_, popup_bounds()).WillRepeatedly(ReturnRef(bounds));
  /external/chromium_org/mojo/services/native_viewport/
native_viewport_service.cc 46 virtual void Create(RectPtr bounds) OVERRIDE {
49 native_viewport_->Init(bounds.To<gfx::Rect>());
51 OnBoundsChanged(bounds.To<gfx::Rect>());
68 virtual void SetBounds(RectPtr bounds) OVERRIDE {
69 native_viewport_->SetBounds(bounds.To<gfx::Rect>());
132 virtual void OnBoundsChanged(const gfx::Rect& bounds) OVERRIDE {
134 client()->OnBoundsChanged(Rect::From(bounds));
  /external/chromium_org/mojo/services/view_manager/
window_tree_host_impl.cc 32 const gfx::Rect& bounds,
36 bounds_(bounds) {
38 native_viewport_->Create(Rect::From(bounds));
85 void WindowTreeHostImpl::SetBounds(const gfx::Rect& bounds) {
86 native_viewport_->SetBounds(Rect::From(bounds));
137 void WindowTreeHostImpl::OnBoundsChanged(RectPtr bounds) {
138 bounds_ = bounds.To<gfx::Rect>();
  /external/chromium_org/ui/message_center/views/
padded_button.cc 81 gfx::Rect bounds = GetContentsBounds(); local
82 bounds.Inset(padding_);
85 offset.set_x((bounds.width() - image.width()) / 2); // Center align.
87 offset.set_x(bounds.width() - image.width()); // Right align.
90 offset.set_y((bounds.height() - image.height()) / 2); // Middle align.
92 offset.set_y(bounds.height() - image.height()); // Bottom align.
94 return bounds.origin() + offset;
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
ResizeState.java 44 /** The proposed resized bounds of the node */
45 public Rect bounds; field in class:ResizeState
47 /** The preferred wrap_content bounds of the node */
103 * Returns the width attribute to be set to match the new bounds
113 return String.format(VALUE_N_DP, mRule.mRulesEngine.pxToDp(bounds.w));
118 * Returns the height attribute to be set to match the new bounds
128 return String.format(VALUE_N_DP, mRule.mRulesEngine.pxToDp(bounds.h));
  /external/chromium_org/ash/wm/overview/
scoped_transform_overview_window.cc 74 gfx::Rect window_bounds = window->bounds();
75 gfx::Rect child_bounds = transient_child->bounds();
112 // bounds to the minimized position.
141 gfx::Rect bounds; local
144 bounds.Union(ScreenUtil::ConvertRectToScreen(window->parent(),
148 return bounds;
169 const gfx::Rect& bounds) {
171 DCHECK(!bounds.IsEmpty());
173 std::min(static_cast<float>(bounds.width()) / rect.width(),
174 static_cast<float>(bounds.height()) / rect.height()))
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/plat-mac/
PixMapWrapper.py 23 'bounds':'hhhh', # coordinates imposed over pixel data
46 'bounds':6,
75 0, 0, 0, 0, # bounds
107 elif attr == 'bounds':
126 elif attr == 'bounds':
127 # return bounds in official Left, Top, Right, Bottom order!
151 src = self.bounds
170 self.bounds = (0,0,width,height)
206 bounds = self.bounds
    [all...]
  /external/chromium_org/chrome/browser/download/
download_shelf.cc 106 const gfx::Rect& bounds,
111 bounds.x(),
112 bounds.y());
135 oval.set(SkIntToScalar(bounds.x()),
136 SkIntToScalar(bounds.y()),
137 SkIntToScalar(bounds.x() + image_size),
138 SkIntToScalar(bounds.y() + image_size));
143 path.lineTo(SkIntToScalar(bounds.x() + image_size / 2),
144 SkIntToScalar(bounds.y() + image_size / 2));
151 bounds.x()
    [all...]
  /external/chromium_org/chrome/browser/ui/views/tabs/
tab_unittest.cc 150 // are fully within the contents bounds.
163 EXPECT_LE(tab.title_->bounds().right(),
174 tab.close_button_->bounds().x() +
178 // Note: The title bounds can overlap the left-insets of the close box,
181 EXPECT_LE(tab.title_->bounds().right(),
182 tab.close_button_->bounds().x() +
185 EXPECT_LE(tab.close_button_->bounds().right(), contents_bounds.right());
186 EXPECT_LE(contents_bounds.y(), tab.close_button_->bounds().y());
187 EXPECT_LE(tab.close_button_->bounds().bottom(), contents_bounds.bottom());
196 params.bounds.SetRect(10, 20, 300, 400)
    [all...]
  /external/chromium_org/third_party/skia/src/gpu/
GrReducedClip.cpp 27 for the case where the bounds are kInsideOut_BoundsType. We could restrict earlier operations
51 // We initially look at whether the bounds alone is sufficient. We also use the stack bounds to
59 const SkIRect* bounds = &queryBounds; local
75 // If the caller asked for tighter integer bounds we may be able to
76 // return kAllIn and give the bounds with no elements
117 bounds = tighterBounds;
133 SkRect scalarBounds = SkRect::Make(*bounds);
135 // Now that we have determined the bounds to use and filtered out the trivial cases, call the
153 // b) an operation that is known to make the bounds all inside/outsid
    [all...]
  /external/skia/src/gpu/
GrReducedClip.cpp 27 for the case where the bounds are kInsideOut_BoundsType. We could restrict earlier operations
51 // We initially look at whether the bounds alone is sufficient. We also use the stack bounds to
59 const SkIRect* bounds = &queryBounds; local
75 // If the caller asked for tighter integer bounds we may be able to
76 // return kAllIn and give the bounds with no elements
117 bounds = tighterBounds;
133 SkRect scalarBounds = SkRect::Make(*bounds);
135 // Now that we have determined the bounds to use and filtered out the trivial cases, call the
153 // b) an operation that is known to make the bounds all inside/outsid
    [all...]

Completed in 657 milliseconds

<<11121314151617181920>>