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

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: 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
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: 92 // Overridden from NativeWidget:
93 virtual ui::EventHandler* GetEventHandler() OVERRIDE; 93 virtual void RepostNativeEvent(gfx::NativeEvent os_event) OVERRIDE;
94 94
95 // Ensures that the correct window is activated/deactivated based on whether 95 // Ensures that the correct window is activated/deactivated based on whether
96 // we are being activated/deactivated. 96 // we are being activated/deactivated.
97 void HandleActivationChanged(bool active); 97 void HandleActivationChanged(bool active);
98 98
99 protected: 99 protected:
100 // Overridden from internal::NativeWidgetPrivate: 100 // Overridden from internal::NativeWidgetPrivate:
101 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; 101 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE;
102 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; 102 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE;
103 virtual bool ShouldUseNativeFrame() const OVERRIDE; 103 virtual bool ShouldUseNativeFrame() const OVERRIDE;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 315
316 // See class documentation for Widget in widget.h for a note about type. 316 // See class documentation for Widget in widget.h for a note about type.
317 Widget::InitParams::Type widget_type_; 317 Widget::InitParams::Type widget_type_;
318 318
319 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); 319 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
320 }; 320 };
321 321
322 } // namespace views 322 } // namespace views
323 323
324 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 324 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698