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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_frame_view.h

Issue 8021009: Consolidate message observer API for win and aura (and touch). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 2 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) 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 CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 PAINT_FOR_ATTENTION 109 PAINT_FOR_ATTENTION
110 }; 110 };
111 111
112 class MouseWatcher : public MessageLoopForUI::Observer { 112 class MouseWatcher : public MessageLoopForUI::Observer {
113 public: 113 public:
114 explicit MouseWatcher(PanelBrowserFrameView* view); 114 explicit MouseWatcher(PanelBrowserFrameView* view);
115 virtual ~MouseWatcher(); 115 virtual ~MouseWatcher();
116 116
117 virtual bool IsCursorInViewBounds() const; 117 virtual bool IsCursorInViewBounds() const;
118 118
119 #if defined(OS_WIN) 119 #if defined(OS_WIN) || defined(TOUCH_UI) || defined(USE_AURA)
120 virtual void WillProcessMessage(const MSG& msg) OVERRIDE; 120 virtual base::EventStatus WillProcessEvent(
121 virtual void DidProcessMessage(const MSG& msg) OVERRIDE; 121 const base::NativeEvent& event) OVERRIDE;
122 virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE;
122 #elif defined(TOOLKIT_USES_GTK) 123 #elif defined(TOOLKIT_USES_GTK)
123 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; 124 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE;
124 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; 125 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE;
125 #elif defined(USE_AURA)
126 virtual EventStatus WillProcessXEvent(XEvent* xevent) OVERRIDE;
127 #endif 126 #endif
128 127
129 private: 128 private:
130 void HandleGlobalMouseMoveEvent(); 129 void HandleGlobalMouseMoveEvent();
131 130
132 PanelBrowserFrameView* view_; 131 PanelBrowserFrameView* view_;
133 bool is_mouse_within_; 132 bool is_mouse_within_;
134 133
135 DISALLOW_COPY_AND_ASSIGN(MouseWatcher); 134 DISALLOW_COPY_AND_ASSIGN(MouseWatcher);
136 }; 135 };
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // Used to animate the visibility change of settings button. 196 // Used to animate the visibility change of settings button.
198 scoped_ptr<ui::SlideAnimation> settings_button_animator_; 197 scoped_ptr<ui::SlideAnimation> settings_button_animator_;
199 gfx::Rect settings_button_full_bounds_; 198 gfx::Rect settings_button_full_bounds_;
200 gfx::Rect settings_button_zero_bounds_; 199 gfx::Rect settings_button_zero_bounds_;
201 bool is_settings_button_visible_; 200 bool is_settings_button_visible_;
202 201
203 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); 202 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView);
204 }; 203 };
205 204
206 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ 205 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698