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

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

Issue 10084020: Removing defunct code around PureViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge tests. Created 8 years, 8 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
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/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) 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 static void CloseAllSecondaryWidgets(); 211 static void CloseAllSecondaryWidgets();
212 212
213 // Converts a rectangle from one Widget's coordinate system to another's. 213 // Converts a rectangle from one Widget's coordinate system to another's.
214 // Returns false if the conversion couldn't be made, because either these two 214 // Returns false if the conversion couldn't be made, because either these two
215 // Widgets do not have a common ancestor or they are not on the screen yet. 215 // Widgets do not have a common ancestor or they are not on the screen yet.
216 // The value of |*rect| won't be changed when false is returned. 216 // The value of |*rect| won't be changed when false is returned.
217 static bool ConvertRect(const Widget* source, 217 static bool ConvertRect(const Widget* source,
218 const Widget* target, 218 const Widget* target,
219 gfx::Rect* rect); 219 gfx::Rect* rect);
220 220
221 // SetPureViews and IsPureViews update and return the state of a global
222 // setting that tracks whether to use available pure Views implementations.
223 static void SetPureViews(bool pure);
224 static bool IsPureViews();
225
226 // Retrieves the Widget implementation associated with the given 221 // Retrieves the Widget implementation associated with the given
227 // NativeView or Window, or NULL if the supplied handle has no associated 222 // NativeView or Window, or NULL if the supplied handle has no associated
228 // Widget. 223 // Widget.
229 static Widget* GetWidgetForNativeView(gfx::NativeView native_view); 224 static Widget* GetWidgetForNativeView(gfx::NativeView native_view);
230 static Widget* GetWidgetForNativeWindow(gfx::NativeWindow native_window); 225 static Widget* GetWidgetForNativeWindow(gfx::NativeWindow native_window);
231 226
232 // Retrieves the top level widget in a native view hierarchy 227 // Retrieves the top level widget in a native view hierarchy
233 // starting at |native_view|. Top level widget is a widget with TYPE_WINDOW, 228 // starting at |native_view|. Top level widget is a widget with TYPE_WINDOW,
234 // TYPE_PANEL, TYPE_WINDOW_FRAMELESS, POPUP or MENU and has its own 229 // TYPE_PANEL, TYPE_WINDOW_FRAMELESS, POPUP or MENU and has its own
235 // focus manager. This may be itself if the |native_view| is top level, 230 // focus manager. This may be itself if the |native_view| is top level,
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 // duplicate move events even though the mouse hasn't moved. 772 // duplicate move events even though the mouse hasn't moved.
778 bool last_mouse_event_was_move_; 773 bool last_mouse_event_was_move_;
779 gfx::Point last_mouse_event_position_; 774 gfx::Point last_mouse_event_position_;
780 775
781 DISALLOW_COPY_AND_ASSIGN(Widget); 776 DISALLOW_COPY_AND_ASSIGN(Widget);
782 }; 777 };
783 778
784 } // namespace views 779 } // namespace views
785 780
786 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 781 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698