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

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

Issue 9250029: Enable KeyboardOverlayDialog on aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add support to create KeyboardOverlayDialog as a bordless dialog. Created 8 years, 10 months 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
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 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <stack> 10 #include <stack>
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 // Creates a decorated window Widget with the specified properties. 187 // Creates a decorated window Widget with the specified properties.
188 static Widget* CreateWindow(WidgetDelegate* delegate); 188 static Widget* CreateWindow(WidgetDelegate* delegate);
189 static Widget* CreateWindowWithParent(WidgetDelegate* delegate, 189 static Widget* CreateWindowWithParent(WidgetDelegate* delegate,
190 gfx::NativeWindow parent); 190 gfx::NativeWindow parent);
191 static Widget* CreateWindowWithBounds(WidgetDelegate* delegate, 191 static Widget* CreateWindowWithBounds(WidgetDelegate* delegate,
192 const gfx::Rect& bounds); 192 const gfx::Rect& bounds);
193 static Widget* CreateWindowWithParentAndBounds(WidgetDelegate* delegate, 193 static Widget* CreateWindowWithParentAndBounds(WidgetDelegate* delegate,
194 gfx::NativeWindow parent, 194 gfx::NativeWindow parent,
195 const gfx::Rect& bounds); 195 const gfx::Rect& bounds);
196 static Widget* CreateFramelessWindowWithParentAndBounds(
197 WidgetDelegate* delegate,
198 gfx::NativeWindow parent,
199 const gfx::Rect& bounds);
196 200
197 // Enumerates all windows pertaining to us and notifies their 201 // Enumerates all windows pertaining to us and notifies their
198 // view hierarchies that the locale has changed. 202 // view hierarchies that the locale has changed.
199 static void NotifyLocaleChanged(); 203 static void NotifyLocaleChanged();
200 204
201 // Closes all Widgets that aren't identified as "secondary widgets". Called 205 // Closes all Widgets that aren't identified as "secondary widgets". Called
202 // during application shutdown when the last non-secondary widget is closed. 206 // during application shutdown when the last non-secondary widget is closed.
203 static void CloseAllSecondaryWidgets(); 207 static void CloseAllSecondaryWidgets();
204 208
205 // Converts a rectangle from one Widget's coordinate system to another's. 209 // Converts a rectangle from one Widget's coordinate system to another's.
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 // both the NonClientView and WidgetDelegate are notified. 660 // both the NonClientView and WidgetDelegate are notified.
657 void SetInactiveRenderingDisabled(bool value); 661 void SetInactiveRenderingDisabled(bool value);
658 662
659 // Persists the window's restored position and "show" state using the 663 // Persists the window's restored position and "show" state using the
660 // window delegate. 664 // window delegate.
661 void SaveWindowPlacement(); 665 void SaveWindowPlacement();
662 666
663 // Sizes and positions the window just after it is created. 667 // Sizes and positions the window just after it is created.
664 void SetInitialBounds(const gfx::Rect& bounds); 668 void SetInitialBounds(const gfx::Rect& bounds);
665 669
670 // Sizes and positions the frameless window just after it is created.
671 void SetInitialBoundsForFramelessWindow(const gfx::Rect& bounds);
672
666 // Returns the bounds and "show" state from the delegate. Returns true if 673 // Returns the bounds and "show" state from the delegate. Returns true if
667 // the delegate wants to use a specified bounds. 674 // the delegate wants to use a specified bounds.
668 bool GetSavedWindowPlacement(gfx::Rect* bounds, 675 bool GetSavedWindowPlacement(gfx::Rect* bounds,
669 ui::WindowShowState* show_state); 676 ui::WindowShowState* show_state);
670 677
671 // Sets a different InputMethod instance to this widget. The instance 678 // Sets a different InputMethod instance to this widget. The instance
672 // must not be initialized, the ownership will be assumed by the widget. 679 // must not be initialized, the ownership will be assumed by the widget.
673 // It's only for testing purpose. 680 // It's only for testing purpose.
674 void ReplaceInputMethod(InputMethod* input_method); 681 void ReplaceInputMethod(InputMethod* input_method);
675 682
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 // duplicate move events even though the mouse hasn't moved. 763 // duplicate move events even though the mouse hasn't moved.
757 bool last_mouse_event_was_move_; 764 bool last_mouse_event_was_move_;
758 gfx::Point last_mouse_event_position_; 765 gfx::Point last_mouse_event_position_;
759 766
760 DISALLOW_COPY_AND_ASSIGN(Widget); 767 DISALLOW_COPY_AND_ASSIGN(Widget);
761 }; 768 };
762 769
763 } // namespace views 770 } // namespace views
764 771
765 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 772 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698