| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEWS_FRAME_BROWSER_FRAME_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/prefs/pref_member.h" | 10 #include "base/prefs/pref_member.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 bool ShouldSaveWindowPlacement() const; | 83 bool ShouldSaveWindowPlacement() const; |
| 84 | 84 |
| 85 // Retrieves the window placement (show state and bounds) for restoring. | 85 // Retrieves the window placement (show state and bounds) for restoring. |
| 86 void GetWindowPlacement(gfx::Rect* bounds, | 86 void GetWindowPlacement(gfx::Rect* bounds, |
| 87 ui::WindowShowState* show_state) const; | 87 ui::WindowShowState* show_state) const; |
| 88 | 88 |
| 89 // Overridden from views::Widget: | 89 // Overridden from views::Widget: |
| 90 virtual views::internal::RootView* CreateRootView() OVERRIDE; | 90 virtual views::internal::RootView* CreateRootView() OVERRIDE; |
| 91 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; | 91 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; |
| 92 virtual bool GetAccelerator(int command_id, | 92 virtual bool GetAccelerator(int command_id, |
| 93 ui::Accelerator* accelerator) OVERRIDE; | 93 ui::Accelerator* accelerator) const OVERRIDE; |
| 94 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; | 94 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; |
| 95 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; | 95 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; |
| 96 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; | 96 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; |
| 97 | 97 |
| 98 // Overridden from views::ContextMenuController: | 98 // Overridden from views::ContextMenuController: |
| 99 virtual void ShowContextMenuForView(views::View* source, | 99 virtual void ShowContextMenuForView(views::View* source, |
| 100 const gfx::Point& p, | 100 const gfx::Point& p, |
| 101 ui::MenuSourceType source_type) OVERRIDE; | 101 ui::MenuSourceType source_type) OVERRIDE; |
| 102 | 102 |
| 103 // Returns true if we should leave any offset at the frame caption. Typically | 103 // Returns true if we should leave any offset at the frame caption. Typically |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 // Whether the custom Chrome frame preference is set. | 146 // Whether the custom Chrome frame preference is set. |
| 147 BooleanPrefMember use_custom_frame_pref_; | 147 BooleanPrefMember use_custom_frame_pref_; |
| 148 | 148 |
| 149 scoped_ptr<ui::EventHandler> browser_command_handler_; | 149 scoped_ptr<ui::EventHandler> browser_command_handler_; |
| 150 | 150 |
| 151 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); | 151 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 154 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
| OLD | NEW |