| 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 "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 // Used to show the system menu. Only used if | 142 // Used to show the system menu. Only used if |
| 143 // NativeBrowserFrame::UsesNativeSystemMenu() returns false. | 143 // NativeBrowserFrame::UsesNativeSystemMenu() returns false. |
| 144 scoped_ptr<views::MenuRunner> menu_runner_; | 144 scoped_ptr<views::MenuRunner> menu_runner_; |
| 145 | 145 |
| 146 // SetThemeProvider() triggers setting both |owned_theme_provider_| and | 146 // SetThemeProvider() triggers setting both |owned_theme_provider_| and |
| 147 // |theme_provider_|. Initially |theme_provider_| is set to the ThemeService | 147 // |theme_provider_|. Initially |theme_provider_| is set to the ThemeService |
| 148 // and |owned_theme_provider_| is null (as ThemeServices lifetime is managed | 148 // and |owned_theme_provider_| is null (as ThemeServices lifetime is managed |
| 149 // externally). | 149 // externally). |
| 150 scoped_ptr<ui::ThemeProvider> owned_theme_provider_; | 150 scoped_ptr<ui::ThemeProvider> owned_theme_provider_; |
| 151 ui::ThemeProvider* theme_provider_; | 151 const ui::ThemeProvider* theme_provider_; |
| 152 | 152 |
| 153 scoped_ptr<ui::EventHandler> browser_command_handler_; | 153 scoped_ptr<ui::EventHandler> browser_command_handler_; |
| 154 | 154 |
| 155 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); | 155 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 158 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
| OLD | NEW |