| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 void Deactivate() OVERRIDE; |
| 59 virtual bool CanResize() const OVERRIDE; | 59 virtual bool CanResize() const OVERRIDE; |
| 60 virtual bool CanMaximize() const OVERRIDE; | 60 virtual bool CanMaximize() const OVERRIDE; |
| 61 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 61 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 62 virtual void UpdateTitleBar() OVERRIDE; | 62 virtual void UpdateTitleBar() OVERRIDE; |
| 63 virtual bool GetSavedWindowPlacement( | 63 virtual bool GetSavedWindowPlacement( |
| 64 gfx::Rect* bounds, | 64 gfx::Rect* bounds, |
| 65 ui::WindowShowState* show_state) const OVERRIDE; | 65 ui::WindowShowState* show_state) const OVERRIDE; |
| 66 virtual bool AcceleratorPressed(const views::Accelerator& accelerator) | 66 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
| 67 OVERRIDE; | |
| 68 | 67 |
| 69 // Overridden from views::WidgetDelegate: | 68 // Overridden from views::WidgetDelegate: |
| 70 virtual void OnDisplayChanged() OVERRIDE; | 69 virtual void OnDisplayChanged() OVERRIDE; |
| 71 virtual void OnWorkAreaChanged() OVERRIDE; | 70 virtual void OnWorkAreaChanged() OVERRIDE; |
| 72 virtual bool WillProcessWorkAreaChange() const OVERRIDE; | 71 virtual bool WillProcessWorkAreaChange() const OVERRIDE; |
| 73 | 72 |
| 74 // Overridden from views::Widget::Observer | 73 // Overridden from views::Widget::Observer |
| 75 virtual void OnWidgetActivationChanged(views::Widget* widget, | 74 virtual void OnWidgetActivationChanged(views::Widget* widget, |
| 76 bool active) OVERRIDE; | 75 bool active) OVERRIDE; |
| 77 | 76 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 base::TimeTicks attention_cleared_time_; | 150 base::TimeTicks attention_cleared_time_; |
| 152 | 151 |
| 153 // 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 |
| 154 // be restored properly when a drag ends. | 153 // be restored properly when a drag ends. |
| 155 views::View* old_focused_view_; | 154 views::View* old_focused_view_; |
| 156 | 155 |
| 157 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 156 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
| 158 }; | 157 }; |
| 159 | 158 |
| 160 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 159 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
| OLD | NEW |