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

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

Issue 8956004: Move ActivationClient/Delegate to client namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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
« no previous file with comments | « ui/aura_shell/window_util.cc ('k') | ui/views/widget/native_widget_aura.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 11 matching lines...) Expand all
22 class Font; 22 class Font;
23 } 23 }
24 24
25 namespace views { 25 namespace views {
26 26
27 class DropHelper; 27 class DropHelper;
28 class TooltipManagerAura; 28 class TooltipManagerAura;
29 29
30 class VIEWS_EXPORT NativeWidgetAura : public internal::NativeWidgetPrivate, 30 class VIEWS_EXPORT NativeWidgetAura : public internal::NativeWidgetPrivate,
31 public aura::WindowDelegate, 31 public aura::WindowDelegate,
32 public aura::ActivationDelegate, 32 public aura::client::ActivationDelegate,
33 public aura::client::DragDropDelegate { 33 public aura::client::DragDropDelegate {
34 public: 34 public:
35 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate); 35 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate);
36 virtual ~NativeWidgetAura(); 36 virtual ~NativeWidgetAura();
37 37
38 // TODO(beng): Find a better place for this, and the similar method on 38 // TODO(beng): Find a better place for this, and the similar method on
39 // NativeWidgetWin. 39 // NativeWidgetWin.
40 static gfx::Font GetWindowTitleFont(); 40 static gfx::Font GetWindowTitleFont();
41 41
42 // Overridden from internal::NativeWidgetPrivate: 42 // Overridden from internal::NativeWidgetPrivate:
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; 133 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE;
134 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE; 134 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE;
135 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE; 135 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE;
136 virtual bool CanFocus() OVERRIDE; 136 virtual bool CanFocus() OVERRIDE;
137 virtual void OnCaptureLost() OVERRIDE; 137 virtual void OnCaptureLost() OVERRIDE;
138 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 138 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
139 virtual void OnWindowDestroying() OVERRIDE; 139 virtual void OnWindowDestroying() OVERRIDE;
140 virtual void OnWindowDestroyed() OVERRIDE; 140 virtual void OnWindowDestroyed() OVERRIDE;
141 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE; 141 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE;
142 142
143 // Overridden from aura::ActivationDelegate: 143 // Overridden from aura::client::ActivationDelegate:
144 virtual bool ShouldActivate(aura::Event* event) OVERRIDE; 144 virtual bool ShouldActivate(aura::Event* event) OVERRIDE;
145 virtual void OnActivated() OVERRIDE; 145 virtual void OnActivated() OVERRIDE;
146 virtual void OnLostActive() OVERRIDE; 146 virtual void OnLostActive() OVERRIDE;
147 147
148 // Overridden from aura::client::DragDropDelegate: 148 // Overridden from aura::client::DragDropDelegate:
149 virtual void OnDragEntered(const aura::DropTargetEvent& event) OVERRIDE; 149 virtual void OnDragEntered(const aura::DropTargetEvent& event) OVERRIDE;
150 virtual int OnDragUpdated(const aura::DropTargetEvent& event) OVERRIDE; 150 virtual int OnDragUpdated(const aura::DropTargetEvent& event) OVERRIDE;
151 virtual void OnDragExited() OVERRIDE; 151 virtual void OnDragExited() OVERRIDE;
152 virtual int OnPerformDrop(const aura::DropTargetEvent& event) OVERRIDE; 152 virtual int OnPerformDrop(const aura::DropTargetEvent& event) OVERRIDE;
153 153
(...skipping 29 matching lines...) Expand all
183 scoped_ptr<ActiveWindowObserver> active_window_observer_; 183 scoped_ptr<ActiveWindowObserver> active_window_observer_;
184 184
185 scoped_ptr<DropHelper> drop_helper_; 185 scoped_ptr<DropHelper> drop_helper_;
186 186
187 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 187 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
188 }; 188 };
189 189
190 } // namespace views 190 } // namespace views
191 191
192 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 192 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/aura_shell/window_util.cc ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698