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

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

Issue 248773002: aura: A couple of API cleanups. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // TODO(beng): remove this method and replace with an implementation of 76 // TODO(beng): remove this method and replace with an implementation of
77 // WindowDestroying() that takes the window being destroyed. 77 // WindowDestroying() that takes the window being destroyed.
78 // Called from ~DesktopWindowTreeHost. This takes the WindowEventDispatcher 78 // Called from ~DesktopWindowTreeHost. This takes the WindowEventDispatcher
79 // as by the time we get here |dispatcher_| is NULL. 79 // as by the time we get here |dispatcher_| is NULL.
80 virtual void OnDesktopWindowTreeHostDestroyed(aura::WindowTreeHost* host); 80 virtual void OnDesktopWindowTreeHostDestroyed(aura::WindowTreeHost* host);
81 81
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_; 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 ui::EventHandler* GetEventHandler() 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.
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 273
274 scoped_ptr<wm::FocusController> focus_client_; 274 scoped_ptr<wm::FocusController> focus_client_;
275 scoped_ptr<DesktopDispatcherClient> dispatcher_client_; 275 scoped_ptr<DesktopDispatcherClient> dispatcher_client_;
276 scoped_ptr<aura::client::ScreenPositionClient> position_client_; 276 scoped_ptr<aura::client::ScreenPositionClient> position_client_;
277 scoped_ptr<aura::client::DragDropClient> drag_drop_client_; 277 scoped_ptr<aura::client::DragDropClient> drag_drop_client_;
278 scoped_ptr<aura::client::WindowTreeClient> window_tree_client_; 278 scoped_ptr<aura::client::WindowTreeClient> window_tree_client_;
279 scoped_ptr<DesktopEventClient> event_client_; 279 scoped_ptr<DesktopEventClient> event_client_;
280 scoped_ptr<FocusManagerEventHandler> focus_manager_event_handler_; 280 scoped_ptr<FocusManagerEventHandler> focus_manager_event_handler_;
281 281
282 // Toplevel event filter which dispatches to other event filters. 282 // Toplevel event filter which dispatches to other event filters.
283 wm::CompoundEventFilter* root_window_event_filter_; 283 scoped_ptr<wm::CompoundEventFilter> root_window_event_filter_;
284 284
285 scoped_ptr<wm::InputMethodEventFilter> input_method_event_filter_; 285 scoped_ptr<wm::InputMethodEventFilter> input_method_event_filter_;
286 286
287 scoped_ptr<DropHelper> drop_helper_; 287 scoped_ptr<DropHelper> drop_helper_;
288 int last_drop_operation_; 288 int last_drop_operation_;
289 289
290 scoped_ptr<corewm::TooltipController> tooltip_controller_; 290 scoped_ptr<corewm::TooltipController> tooltip_controller_;
291 scoped_ptr<TooltipManagerAura> tooltip_manager_; 291 scoped_ptr<TooltipManagerAura> tooltip_manager_;
292 292
293 scoped_ptr<wm::VisibilityController> visibility_controller_; 293 scoped_ptr<wm::VisibilityController> visibility_controller_;
(...skipping 23 matching lines...) Expand all
317 317
318 // See class documentation for Widget in widget.h for a note about type. 318 // See class documentation for Widget in widget.h for a note about type.
319 Widget::InitParams::Type widget_type_; 319 Widget::InitParams::Type widget_type_;
320 320
321 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); 321 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
322 }; 322 };
323 323
324 } // namespace views 324 } // namespace views
325 325
326 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 326 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/aura/window_event_dispatcher_unittest.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