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

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

Issue 25445002: Ensure that in Desktop AURA the WindowModalityController class is at the head of the event pre targ… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 2 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_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "ui/aura/client/activation_change_observer.h" 9 #include "ui/aura/client/activation_change_observer.h"
10 #include "ui/aura/client/activation_delegate.h" 10 #include "ui/aura/client/activation_delegate.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Invoked from DesktopRootWindowHost creation to create the CaptureClient. 74 // Invoked from DesktopRootWindowHost creation to create the CaptureClient.
75 void CreateCaptureClient(aura::RootWindow* root); 75 void CreateCaptureClient(aura::RootWindow* root);
76 76
77 // Overridden from NativeWidget: 77 // Overridden from NativeWidget:
78 virtual ui::EventHandler* GetEventHandler() OVERRIDE; 78 virtual ui::EventHandler* GetEventHandler() OVERRIDE;
79 79
80 // Ensures that the correct window is activated/deactivated based on whether 80 // Ensures that the correct window is activated/deactivated based on whether
81 // we are being activated/deactivated. 81 // we are being activated/deactivated.
82 void HandleActivationChanged(bool active); 82 void HandleActivationChanged(bool active);
83 83
84 // Installs the window modality controller event filter on the |root|. This
85 // should be invoked by the DesktopRootWindowHost implementation immediately
86 // after creation of the RootWindow.
87 void InstallWindowModalityController(aura::RootWindow* root);
88
84 protected: 89 protected:
85 // Overridden from internal::NativeWidgetPrivate: 90 // Overridden from internal::NativeWidgetPrivate:
86 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; 91 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE;
87 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; 92 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE;
88 virtual bool ShouldUseNativeFrame() const OVERRIDE; 93 virtual bool ShouldUseNativeFrame() const OVERRIDE;
89 virtual void FrameTypeChanged() OVERRIDE; 94 virtual void FrameTypeChanged() OVERRIDE;
90 virtual Widget* GetWidget() OVERRIDE; 95 virtual Widget* GetWidget() OVERRIDE;
91 virtual const Widget* GetWidget() const OVERRIDE; 96 virtual const Widget* GetWidget() const OVERRIDE;
92 virtual gfx::NativeView GetNativeView() const OVERRIDE; 97 virtual gfx::NativeView GetNativeView() const OVERRIDE;
93 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; 98 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE;
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 bool restore_focus_on_activate_; 284 bool restore_focus_on_activate_;
280 285
281 gfx::NativeCursor cursor_; 286 gfx::NativeCursor cursor_;
282 287
283 scoped_ptr<corewm::ShadowController> shadow_controller_; 288 scoped_ptr<corewm::ShadowController> shadow_controller_;
284 289
285 // Reorders child windows of |window_| associated with a view based on the 290 // Reorders child windows of |window_| associated with a view based on the
286 // order of the associated views in the widget's view hierarchy. 291 // order of the associated views in the widget's view hierarchy.
287 scoped_ptr<WindowReorderer> window_reorderer_; 292 scoped_ptr<WindowReorderer> window_reorderer_;
288 293
294 // See class documentation for Widget in widget.h for a note about type.
295 Widget::InitParams::Type widget_type_;
296
289 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); 297 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
290 }; 298 };
291 299
292 } // namespace views 300 } // namespace views
293 301
294 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 302 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/corewm/window_modality_controller.cc ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698