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

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

Issue 54983005: Plumb native AppWindow input region through to window shape under Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo in X11 patch Created 7 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 | « ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc ('k') | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_WIDGET_WIDGET_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_
6 #define UI_VIEWS_WIDGET_WIDGET_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 void EndMoveLoop(); 412 void EndMoveLoop();
413 413
414 // Places the widget in front of the specified widget in z-order. 414 // Places the widget in front of the specified widget in z-order.
415 void StackAboveWidget(Widget* widget); 415 void StackAboveWidget(Widget* widget);
416 void StackAbove(gfx::NativeView native_view); 416 void StackAbove(gfx::NativeView native_view);
417 void StackAtTop(); 417 void StackAtTop();
418 418
419 // Places the widget below the specified NativeView. 419 // Places the widget below the specified NativeView.
420 void StackBelow(gfx::NativeView native_view); 420 void StackBelow(gfx::NativeView native_view);
421 421
422 // Sets a shape on the widget. This takes ownership of shape. 422 // Sets a shape on the widget. Passing a NULL |shape| reverts the widget to
423 // be rectangular. Takes ownership of |shape|.
423 void SetShape(gfx::NativeRegion shape); 424 void SetShape(gfx::NativeRegion shape);
424 425
425 // Hides the widget then closes it after a return to the message loop. 426 // Hides the widget then closes it after a return to the message loop.
426 virtual void Close(); 427 virtual void Close();
427 428
428 // TODO(beng): Move off public API. 429 // TODO(beng): Move off public API.
429 // Closes the widget immediately. Compare to |Close|. This will destroy the 430 // Closes the widget immediately. Compare to |Close|. This will destroy the
430 // window handle associated with this Widget, so should not be called from 431 // window handle associated with this Widget, so should not be called from
431 // any code that expects it to be valid beyond this call. 432 // any code that expects it to be valid beyond this call.
432 void CloseNow(); 433 void CloseNow();
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 // True when window movement via mouse interaction with the frame should be 893 // True when window movement via mouse interaction with the frame should be
893 // disabled. 894 // disabled.
894 bool movement_disabled_; 895 bool movement_disabled_;
895 896
896 DISALLOW_COPY_AND_ASSIGN(Widget); 897 DISALLOW_COPY_AND_ASSIGN(Widget);
897 }; 898 };
898 899
899 } // namespace views 900 } // namespace views
900 901
901 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 902 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698