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

Side by Side Diff: views/widget/tooltip_manager_views.h

Issue 8378005: wayland: define base:NativeEvent for Wayland (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Create a new wayland namespace in base and define WaylandEvent there. Created 9 years, 1 month 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) 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 VIEWS_WIDGET_TOOLTIP_MANAGER_VIEWS_H_ 5 #ifndef VIEWS_WIDGET_TOOLTIP_MANAGER_VIEWS_H_
6 #define VIEWS_WIDGET_TOOLTIP_MANAGER_VIEWS_H_ 6 #define VIEWS_WIDGET_TOOLTIP_MANAGER_VIEWS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/timer.h" 10 #include "base/timer.h"
11 #include "views/controls/label.h" 11 #include "views/controls/label.h"
12 #include "views/widget/native_widget.h" 12 #include "views/widget/native_widget.h"
13 #include "views/widget/tooltip_manager.h" 13 #include "views/widget/tooltip_manager.h"
14 #include "views/widget/widget_delegate.h" 14 #include "views/widget/widget_delegate.h"
15 #include "views/view.h" 15 #include "views/view.h"
16 16
17 #if defined(USE_X11) 17 #if defined(USE_X11)
18 typedef union _XEvent XEvent; 18 typedef union _XEvent XEvent;
19 namespace ui {
20 union WaylandEvent;
21 }
22 #endif 19 #endif
23 20
24 namespace views { 21 namespace views {
25 22
26 class MouseEvent; 23 class MouseEvent;
27 class Widget; 24 class Widget;
28 25
29 // TooltipManager implementation for Views. 26 // TooltipManager implementation for Views.
30 class TooltipManagerViews : public TooltipManager { 27 class TooltipManagerViews : public TooltipManager {
31 public: 28 public:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 71
75 gfx::Point curr_mouse_pos_; 72 gfx::Point curr_mouse_pos_;
76 base::RepeatingTimer<TooltipManagerViews> tooltip_timer_; 73 base::RepeatingTimer<TooltipManagerViews> tooltip_timer_;
77 74
78 DISALLOW_COPY_AND_ASSIGN(TooltipManagerViews); 75 DISALLOW_COPY_AND_ASSIGN(TooltipManagerViews);
79 }; 76 };
80 77
81 } // namespace views 78 } // namespace views
82 79
83 #endif // VIEWS_WIDGET_TOOLTIP_MANAGER_VIEWS_H_ 80 #endif // VIEWS_WIDGET_TOOLTIP_MANAGER_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698