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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 enum MouseDraggingState { | 49 enum MouseDraggingState { |
50 NO_DRAGGING, | 50 NO_DRAGGING, |
51 DRAGGING_STARTED, | 51 DRAGGING_STARTED, |
52 DRAGGING_ENDED | 52 DRAGGING_ENDED |
53 }; | 53 }; |
54 | 54 |
55 // Overridden from BrowserView: | 55 // Overridden from BrowserView: |
56 virtual void Init() OVERRIDE; | 56 virtual void Init() OVERRIDE; |
57 virtual void Close() OVERRIDE; | 57 virtual void Close() OVERRIDE; |
| 58 virtual void Deactivate() OVERRIDE; |
58 virtual bool CanResize() const OVERRIDE; | 59 virtual bool CanResize() const OVERRIDE; |
59 virtual bool CanMaximize() const OVERRIDE; | 60 virtual bool CanMaximize() const OVERRIDE; |
60 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 61 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
61 virtual void UpdateTitleBar() OVERRIDE; | 62 virtual void UpdateTitleBar() OVERRIDE; |
62 virtual bool GetSavedWindowPlacement( | 63 virtual bool GetSavedWindowPlacement( |
63 gfx::Rect* bounds, | 64 gfx::Rect* bounds, |
64 ui::WindowShowState* show_state) const OVERRIDE; | 65 ui::WindowShowState* show_state) const OVERRIDE; |
65 virtual bool AcceleratorPressed(const views::Accelerator& accelerator) | 66 virtual bool AcceleratorPressed(const views::Accelerator& accelerator) |
66 OVERRIDE; | 67 OVERRIDE; |
67 | 68 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 base::TimeTicks attention_cleared_time_; | 150 base::TimeTicks attention_cleared_time_; |
150 | 151 |
151 // The last view that had focus in the panel. This is saved so that focus can | 152 // The last view that had focus in the panel. This is saved so that focus can |
152 // be restored properly when a drag ends. | 153 // be restored properly when a drag ends. |
153 views::View* old_focused_view_; | 154 views::View* old_focused_view_; |
154 | 155 |
155 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 156 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
156 }; | 157 }; |
157 | 158 |
158 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 159 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
OLD | NEW |