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

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

Issue 307623002: MacViews: Replace NativeWidget::GetEventHandler() with RepostNativeEvent(..) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20140528-MacViews-examples_exe
Patch Set: address comments Created 6 years, 6 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
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/focus_change_observer.h" 9 #include "ui/aura/client/focus_change_observer.h"
10 #include "ui/aura/window_delegate.h" 10 #include "ui/aura/window_delegate.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 wm::InputMethodEventFilter* input_method_event_filter() { 82 wm::InputMethodEventFilter* input_method_event_filter() {
83 return input_method_event_filter_.get(); 83 return input_method_event_filter_.get();
84 } 84 }
85 wm::CompoundEventFilter* root_window_event_filter() { 85 wm::CompoundEventFilter* root_window_event_filter() {
86 return root_window_event_filter_.get(); 86 return root_window_event_filter_.get();
87 } 87 }
88 aura::WindowTreeHost* host() { 88 aura::WindowTreeHost* host() {
89 return host_.get(); 89 return host_.get();
90 } 90 }
91 91
92 // Overridden from NativeWidget:
93 virtual ui::EventHandler* GetEventHandler() OVERRIDE;
94
95 // Ensures that the correct window is activated/deactivated based on whether 92 // Ensures that the correct window is activated/deactivated based on whether
96 // we are being activated/deactivated. 93 // we are being activated/deactivated.
97 void HandleActivationChanged(bool active); 94 void HandleActivationChanged(bool active);
98 95
99 protected: 96 protected:
100 // Overridden from internal::NativeWidgetPrivate: 97 // Overridden from internal::NativeWidgetPrivate:
101 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; 98 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE;
102 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; 99 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE;
103 virtual bool ShouldUseNativeFrame() const OVERRIDE; 100 virtual bool ShouldUseNativeFrame() const OVERRIDE;
104 virtual bool ShouldWindowContentsBeTransparent() const OVERRIDE; 101 virtual bool ShouldWindowContentsBeTransparent() const OVERRIDE;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 virtual void ClearNativeFocus() OVERRIDE; 171 virtual void ClearNativeFocus() OVERRIDE;
175 virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE; 172 virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE;
176 virtual Widget::MoveLoopResult RunMoveLoop( 173 virtual Widget::MoveLoopResult RunMoveLoop(
177 const gfx::Vector2d& drag_offset, 174 const gfx::Vector2d& drag_offset,
178 Widget::MoveLoopSource source, 175 Widget::MoveLoopSource source,
179 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE; 176 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE;
180 virtual void EndMoveLoop() OVERRIDE; 177 virtual void EndMoveLoop() OVERRIDE;
181 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; 178 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE;
182 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE; 179 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE;
183 virtual void OnRootViewLayout() const OVERRIDE; 180 virtual void OnRootViewLayout() const OVERRIDE;
181 virtual void RepostNativeEvent(gfx::NativeEvent native_event) OVERRIDE;
184 182
185 // Overridden from aura::WindowDelegate: 183 // Overridden from aura::WindowDelegate:
186 virtual gfx::Size GetMinimumSize() const OVERRIDE; 184 virtual gfx::Size GetMinimumSize() const OVERRIDE;
187 virtual gfx::Size GetMaximumSize() const OVERRIDE; 185 virtual gfx::Size GetMaximumSize() const OVERRIDE;
188 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, 186 virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
189 const gfx::Rect& new_bounds) OVERRIDE {} 187 const gfx::Rect& new_bounds) OVERRIDE {}
190 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; 188 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE;
191 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; 189 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE;
192 virtual bool ShouldDescendIntoChildForEventHandling( 190 virtual bool ShouldDescendIntoChildForEventHandling(
193 aura::Window* child, 191 aura::Window* child,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 313
316 // See class documentation for Widget in widget.h for a note about type. 314 // See class documentation for Widget in widget.h for a note about type.
317 Widget::InitParams::Type widget_type_; 315 Widget::InitParams::Type widget_type_;
318 316
319 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); 317 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
320 }; 318 };
321 319
322 } // namespace views 320 } // namespace views
323 321
324 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 322 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698