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 "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 friend class PanelBrowserViewTest; | 61 friend class PanelBrowserViewTest; |
62 | 62 |
63 enum MouseDraggingState { | 63 enum MouseDraggingState { |
64 NO_DRAGGING, | 64 NO_DRAGGING, |
65 DRAGGING_STARTED, | 65 DRAGGING_STARTED, |
66 DRAGGING_ENDED | 66 DRAGGING_ENDED |
67 }; | 67 }; |
68 | 68 |
69 // Overridden from BrowserView: | 69 // Overridden from BrowserView: |
70 virtual void Init() OVERRIDE; | 70 virtual void Init() OVERRIDE; |
| 71 virtual void Show() OVERRIDE; |
| 72 virtual void ShowInactive() OVERRIDE; |
71 virtual void Close() OVERRIDE; | 73 virtual void Close() OVERRIDE; |
72 virtual void Deactivate() OVERRIDE; | 74 virtual void Deactivate() OVERRIDE; |
73 virtual bool CanResize() const OVERRIDE; | 75 virtual bool CanResize() const OVERRIDE; |
74 virtual bool CanMaximize() const OVERRIDE; | 76 virtual bool CanMaximize() const OVERRIDE; |
75 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 77 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
76 virtual void UpdateTitleBar() OVERRIDE; | 78 virtual void UpdateTitleBar() OVERRIDE; |
77 virtual bool GetSavedWindowPlacement( | 79 virtual bool GetSavedWindowPlacement( |
78 gfx::Rect* bounds, | 80 gfx::Rect* bounds, |
79 ui::WindowShowState* show_state) const OVERRIDE; | 81 ui::WindowShowState* show_state) const OVERRIDE; |
80 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 82 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 base::TimeTicks attention_cleared_time_; | 175 base::TimeTicks attention_cleared_time_; |
174 | 176 |
175 // The last view that had focus in the panel. This is saved so that focus can | 177 // The last view that had focus in the panel. This is saved so that focus can |
176 // be restored properly when a drag ends. | 178 // be restored properly when a drag ends. |
177 views::View* old_focused_view_; | 179 views::View* old_focused_view_; |
178 | 180 |
179 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 181 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
180 }; | 182 }; |
181 | 183 |
182 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 184 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
OLD | NEW |