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

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

Issue 1953753002: Turn RootWindowController Menus Async (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « ui/views/widget/native_widget_mac.mm ('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_NATIVE_WIDGET_PRIVATE_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 static void GetAllOwnedWidgets(gfx::NativeView native_view, 66 static void GetAllOwnedWidgets(gfx::NativeView native_view,
67 Widget::Widgets* owned); 67 Widget::Widgets* owned);
68 static void ReparentNativeView(gfx::NativeView native_view, 68 static void ReparentNativeView(gfx::NativeView native_view,
69 gfx::NativeView new_parent); 69 gfx::NativeView new_parent);
70 70
71 // Returns true if any mouse button is currently down. 71 // Returns true if any mouse button is currently down.
72 static bool IsMouseButtonDown(); 72 static bool IsMouseButtonDown();
73 73
74 static gfx::FontList GetWindowTitleFontList(); 74 static gfx::FontList GetWindowTitleFontList();
75 75
76 // Returns the NativeView with capture, otherwise NULL if there is no current
77 // capture set, or if |native_view| has no root.
78 static gfx::NativeView GetGlobalCapture(gfx::NativeView native_view);
79
76 // Initializes the NativeWidget. 80 // Initializes the NativeWidget.
77 virtual void InitNativeWidget(const Widget::InitParams& params) = 0; 81 virtual void InitNativeWidget(const Widget::InitParams& params) = 0;
78 82
79 // Called at the end of Widget::Init(), after Widget has completed 83 // Called at the end of Widget::Init(), after Widget has completed
80 // initialization. 84 // initialization.
81 virtual void OnWidgetInitDone() = 0; 85 virtual void OnWidgetInitDone() = 0;
82 86
83 // Returns a NonClientFrameView for the widget's NonClientView, or NULL if 87 // Returns a NonClientFrameView for the widget's NonClientView, or NULL if
84 // the NativeWidget wants no special NonClientFrameView. 88 // the NativeWidget wants no special NonClientFrameView.
85 virtual NonClientFrameView* CreateNonClientFrameView() = 0; 89 virtual NonClientFrameView* CreateNonClientFrameView() = 0;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 virtual std::string GetName() const = 0; 234 virtual std::string GetName() const = 0;
231 235
232 // Overridden from NativeWidget: 236 // Overridden from NativeWidget:
233 internal::NativeWidgetPrivate* AsNativeWidgetPrivate() override; 237 internal::NativeWidgetPrivate* AsNativeWidgetPrivate() override;
234 }; 238 };
235 239
236 } // namespace internal 240 } // namespace internal
237 } // namespace views 241 } // namespace views
238 242
239 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 243 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_mac.mm ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698