Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Side by Side Diff: views/widget/widget.h

Issue 8620002: s/Move/Stack/ in names of stacking-related methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix a test Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/widget/native_widget_win.cc ('k') | views/widget/widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef VIEWS_WIDGET_WIDGET_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_H_
6 #define VIEWS_WIDGET_WIDGET_H_ 6 #define VIEWS_WIDGET_WIDGET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <stack> 10 #include <stack>
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // Sizes and/or places the widget to the specified bounds, size or position. 298 // Sizes and/or places the widget to the specified bounds, size or position.
299 void SetBounds(const gfx::Rect& bounds); 299 void SetBounds(const gfx::Rect& bounds);
300 void SetSize(const gfx::Size& size); 300 void SetSize(const gfx::Size& size);
301 301
302 // Like SetBounds(), but ensures the Widget is fully visible on screen, 302 // Like SetBounds(), but ensures the Widget is fully visible on screen,
303 // resizing and/or repositioning as necessary. This is only useful for 303 // resizing and/or repositioning as necessary. This is only useful for
304 // non-child widgets. 304 // non-child widgets.
305 void SetBoundsConstrained(const gfx::Rect& bounds); 305 void SetBoundsConstrained(const gfx::Rect& bounds);
306 306
307 // Places the widget in front of the specified widget in z-order. 307 // Places the widget in front of the specified widget in z-order.
308 void MoveAboveWidget(Widget* widget); 308 void StackAboveWidget(Widget* widget);
309 void MoveAbove(gfx::NativeView native_view); 309 void StackAbove(gfx::NativeView native_view);
310 void MoveToTop(); 310 void StackAtTop();
311 311
312 // Sets a shape on the widget. This takes ownership of shape. 312 // Sets a shape on the widget. This takes ownership of shape.
313 void SetShape(gfx::NativeRegion shape); 313 void SetShape(gfx::NativeRegion shape);
314 314
315 // Hides the widget then closes it after a return to the message loop. 315 // Hides the widget then closes it after a return to the message loop.
316 virtual void Close(); 316 virtual void Close();
317 317
318 // TODO(beng): Move off public API. 318 // TODO(beng): Move off public API.
319 // Closes the widget immediately. Compare to |Close|. This will destroy the 319 // Closes the widget immediately. Compare to |Close|. This will destroy the
320 // window handle associated with this Widget, so should not be called from 320 // window handle associated with this Widget, so should not be called from
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 // duplicate move events even though the mouse hasn't moved. 737 // duplicate move events even though the mouse hasn't moved.
738 bool last_mouse_event_was_move_; 738 bool last_mouse_event_was_move_;
739 gfx::Point last_mouse_event_position_; 739 gfx::Point last_mouse_event_position_;
740 740
741 DISALLOW_COPY_AND_ASSIGN(Widget); 741 DISALLOW_COPY_AND_ASSIGN(Widget);
742 }; 742 };
743 743
744 } // namespace views 744 } // namespace views
745 745
746 #endif // VIEWS_WIDGET_WIDGET_H_ 746 #endif // VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « views/widget/native_widget_win.cc ('k') | views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698