| 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 | 29 |
| 30 // Overridden from BrowserView: | 30 // Overridden from BrowserView: |
| 31 virtual void Close() OVERRIDE; | 31 virtual void Close() OVERRIDE; |
| 32 virtual void UpdateTitleBar() OVERRIDE; | 32 virtual void UpdateTitleBar() OVERRIDE; |
| 33 virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const OVERRIDE; | 33 virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const OVERRIDE; |
| 34 virtual void OnWindowActivationChanged(bool active) OVERRIDE; | 34 virtual void OnWindowActivationChanged(bool active) OVERRIDE; |
| 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, CreateOptionsMenu); |
| 39 | 40 |
| 40 PanelBrowserFrameView* GetFrameView() const; | 41 PanelBrowserFrameView* GetFrameView() const; |
| 41 | 42 |
| 42 Panel* panel_; | 43 Panel* panel_; |
| 43 | 44 |
| 44 // Is the mouse button currently down? | 45 // Is the mouse button currently down? |
| 45 bool mouse_pressed_; | 46 bool mouse_pressed_; |
| 46 | 47 |
| 47 // Location the mouse was pressed at. Used to detect drag and drop. | 48 // Location the mouse was pressed at. Used to detect drag and drop. |
| 48 gfx::Point mouse_pressed_point_; | 49 gfx::Point mouse_pressed_point_; |
| 49 | 50 |
| 50 // Is the titlebar currently being dragged? That is, has the cursor | 51 // Is the titlebar currently being dragged? That is, has the cursor |
| 51 // moved more than kDragThreshold away from its starting position? | 52 // moved more than kDragThreshold away from its starting position? |
| 52 bool mouse_dragging_; | 53 bool mouse_dragging_; |
| 53 | 54 |
| 54 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 55 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 58 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
| OLD | NEW |