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

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

Issue 8769011: Reland change for aura tooltips that was revert due to build break: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moved exclude to gyp file 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/views/test/test_tooltip_client.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"
11 #include "ui/aura/client/window_drag_drop_delegate.h" 11 #include "ui/aura/client/window_drag_drop_delegate.h"
12 #include "ui/aura/window_delegate.h" 12 #include "ui/aura/window_delegate.h"
13 #include "ui/base/events.h" 13 #include "ui/base/events.h"
14 #include "ui/views/views_export.h" 14 #include "ui/views/views_export.h"
15 #include "ui/views/widget/native_widget_private.h" 15 #include "ui/views/widget/native_widget_private.h"
16 16
17 namespace aura { 17 namespace aura {
18 class Window; 18 class Window;
19 } 19 }
20 namespace gfx { 20 namespace gfx {
21 class Font; 21 class Font;
22 } 22 }
23 23
24 namespace views { 24 namespace views {
25 25
26 class DropHelper; 26 class DropHelper;
27 class TooltipManagerViews; 27 class TooltipManagerAura;
28 28
29 class VIEWS_EXPORT NativeWidgetAura : public internal::NativeWidgetPrivate, 29 class VIEWS_EXPORT NativeWidgetAura : public internal::NativeWidgetPrivate,
30 public aura::WindowDelegate, 30 public aura::WindowDelegate,
31 public aura::WindowDragDropDelegate { 31 public aura::WindowDragDropDelegate {
32 public: 32 public:
33 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate); 33 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate);
34 virtual ~NativeWidgetAura(); 34 virtual ~NativeWidgetAura();
35 35
36 // TODO(beng): Find a better place for this, and the similar method on 36 // TODO(beng): Find a better place for this, and the similar method on
37 // NativeWidgetWin. 37 // NativeWidgetWin.
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 // The following factory is used for calls to close the NativeWidgetAura 162 // The following factory is used for calls to close the NativeWidgetAura
163 // instance. 163 // instance.
164 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; 164 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_;
165 165
166 // Can we be made active? 166 // Can we be made active?
167 bool can_activate_; 167 bool can_activate_;
168 168
169 gfx::NativeCursor cursor_; 169 gfx::NativeCursor cursor_;
170 170
171 scoped_ptr<TooltipManagerViews> tooltip_manager_; 171 scoped_ptr<TooltipManagerAura> tooltip_manager_;
172 172
173 scoped_ptr<DesktopObserverImpl> desktop_observer_; 173 scoped_ptr<DesktopObserverImpl> desktop_observer_;
174 174
175 scoped_ptr<DropHelper> drop_helper_; 175 scoped_ptr<DropHelper> drop_helper_;
176 176
177 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 177 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
178 }; 178 };
179 179
180 } // namespace views 180 } // namespace views
181 181
182 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 182 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/test/test_tooltip_client.cc ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698