| 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_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_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 "chrome/browser/ui/views/frame/browser_view.h" | 10 #include "chrome/browser/ui/views/frame/browser_view.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // Called from frame view when title bar receives a mouse event. | 29 // Called from frame view when title bar receives a mouse event. |
| 30 // Return true if the event is handled. | 30 // Return true if the event is handled. |
| 31 bool OnTitleBarMousePressed(const views::MouseEvent& event); | 31 bool OnTitleBarMousePressed(const views::MouseEvent& event); |
| 32 bool OnTitleBarMouseDragged(const views::MouseEvent& event); | 32 bool OnTitleBarMouseDragged(const views::MouseEvent& event); |
| 33 bool OnTitleBarMouseReleased(const views::MouseEvent& event); | 33 bool OnTitleBarMouseReleased(const views::MouseEvent& event); |
| 34 bool OnTitleBarMouseCaptureLost(); | 34 bool OnTitleBarMouseCaptureLost(); |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 friend class PanelBrowserViewTest; | 37 friend class PanelBrowserViewTest; |
| 38 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, CreatePanel); | 38 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, CreatePanel); |
| 39 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, ShowOrHideInfoButton); | 39 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, ShowOrHideSettingsButton); |
| 40 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, SetBoundsAnimation); | 40 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, SetBoundsAnimation); |
| 41 | 41 |
| 42 // Overridden from BrowserView: | 42 // Overridden from BrowserView: |
| 43 virtual void Init() OVERRIDE; | 43 virtual void Init() OVERRIDE; |
| 44 virtual void Close() OVERRIDE; | 44 virtual void Close() OVERRIDE; |
| 45 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 45 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 46 virtual void UpdateTitleBar() OVERRIDE; | 46 virtual void UpdateTitleBar() OVERRIDE; |
| 47 virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const OVERRIDE; | 47 virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const OVERRIDE; |
| 48 virtual void OnWindowActivationChanged(bool active) OVERRIDE; | 48 virtual void OnWindowActivationChanged(bool active) OVERRIDE; |
| 49 virtual bool AcceleratorPressed(const views::Accelerator& accelerator) | 49 virtual bool AcceleratorPressed(const views::Accelerator& accelerator) |
| (...skipping 19 matching lines...) Expand all Loading... |
| 69 | 69 |
| 70 // Used to animate the bounds change. | 70 // Used to animate the bounds change. |
| 71 scoped_ptr<ui::SlideAnimation> bounds_animator_; | 71 scoped_ptr<ui::SlideAnimation> bounds_animator_; |
| 72 gfx::Rect animation_start_bounds_; | 72 gfx::Rect animation_start_bounds_; |
| 73 gfx::Rect animation_target_bounds_; | 73 gfx::Rect animation_target_bounds_; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 75 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 78 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
| OLD | NEW |