OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #import "chrome/browser/cocoa/chrome_browser_window.h" | 5 #import "chrome/browser/cocoa/chrome_browser_window.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #import "chrome/browser/cocoa/browser_window_controller.h" | 8 #import "chrome/browser/cocoa/browser_window_controller.h" |
9 #import "chrome/browser/cocoa/browser_frame_view.h" | 9 #import "chrome/browser/cocoa/browser_frame_view.h" |
10 #import "chrome/browser/cocoa/tab_strip_controller.h" | 10 #import "chrome/browser/cocoa/tab_strip_controller.h" |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 - (void)becomeMainWindow { | 254 - (void)becomeMainWindow { |
255 [self windowMainStatusChanged]; | 255 [self windowMainStatusChanged]; |
256 [super becomeMainWindow]; | 256 [super becomeMainWindow]; |
257 } | 257 } |
258 | 258 |
259 - (void)resignMainWindow { | 259 - (void)resignMainWindow { |
260 [self windowMainStatusChanged]; | 260 [self windowMainStatusChanged]; |
261 [super resignMainWindow]; | 261 [super resignMainWindow]; |
262 } | 262 } |
263 | 263 |
| 264 // Called after the current theme has changed. |
264 - (void)themeDidChangeNotification:(NSNotification*)aNotification { | 265 - (void)themeDidChangeNotification:(NSNotification*)aNotification { |
265 GTMTheme* theme = [aNotification object]; | 266 GTMTheme* theme = [aNotification object]; |
266 if ([theme isEqual:[self gtm_theme]]) { | 267 if ([theme isEqual:[self gtm_theme]]) { |
267 [[self frameView] setNeedsDisplay:YES]; | 268 [[self frameView] setNeedsDisplay:YES]; |
268 } | 269 } |
269 } | 270 } |
270 | 271 |
271 - (void)systemThemeDidChangeNotification:(NSNotification*)aNotification { | 272 - (void)systemThemeDidChangeNotification:(NSNotification*)aNotification { |
272 [closeButton_ setNeedsDisplay]; | 273 [closeButton_ setNeedsDisplay]; |
273 [zoomButton_ setNeedsDisplay]; | 274 [zoomButton_ setNeedsDisplay]; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 | 323 |
323 - (void)setShouldHideTitle:(BOOL)flag { | 324 - (void)setShouldHideTitle:(BOOL)flag { |
324 shouldHideTitle_ = flag; | 325 shouldHideTitle_ = flag; |
325 } | 326 } |
326 | 327 |
327 -(BOOL)_isTitleHidden { | 328 -(BOOL)_isTitleHidden { |
328 return shouldHideTitle_; | 329 return shouldHideTitle_; |
329 } | 330 } |
330 | 331 |
331 @end | 332 @end |
OLD | NEW |