| OLD | NEW |
| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 PAINT_FOR_ATTENTION | 107 PAINT_FOR_ATTENTION |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 class MouseWatcher : public MessageLoopForUI::Observer { | 110 class MouseWatcher : public MessageLoopForUI::Observer { |
| 111 public: | 111 public: |
| 112 explicit MouseWatcher(PanelBrowserFrameView* view); | 112 explicit MouseWatcher(PanelBrowserFrameView* view); |
| 113 virtual ~MouseWatcher(); | 113 virtual ~MouseWatcher(); |
| 114 | 114 |
| 115 virtual bool IsCursorInViewBounds() const; | 115 virtual bool IsCursorInViewBounds() const; |
| 116 | 116 |
| 117 #if defined(OS_WIN) || defined(TOUCH_UI) || defined(USE_AURA) | 117 #if defined(OS_WIN) || defined(USE_AURA) |
| 118 virtual base::EventStatus WillProcessEvent( | 118 virtual base::EventStatus WillProcessEvent( |
| 119 const base::NativeEvent& event) OVERRIDE; | 119 const base::NativeEvent& event) OVERRIDE; |
| 120 virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE; | 120 virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE; |
| 121 #elif defined(TOOLKIT_USES_GTK) | 121 #elif defined(TOOLKIT_USES_GTK) |
| 122 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; | 122 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; |
| 123 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; | 123 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; |
| 124 #endif | 124 #endif |
| 125 | 125 |
| 126 private: | 126 private: |
| 127 void HandleGlobalMouseMoveEvent(); | 127 void HandleGlobalMouseMoveEvent(); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // Used to animate the visibility change of settings button. | 192 // Used to animate the visibility change of settings button. |
| 193 scoped_ptr<ui::SlideAnimation> settings_button_animator_; | 193 scoped_ptr<ui::SlideAnimation> settings_button_animator_; |
| 194 gfx::Rect settings_button_full_bounds_; | 194 gfx::Rect settings_button_full_bounds_; |
| 195 gfx::Rect settings_button_zero_bounds_; | 195 gfx::Rect settings_button_zero_bounds_; |
| 196 bool is_settings_button_visible_; | 196 bool is_settings_button_visible_; |
| 197 | 197 |
| 198 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); | 198 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); |
| 199 }; | 199 }; |
| 200 | 200 |
| 201 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ | 201 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |