Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: chrome/browser/cocoa/chrome_browser_window.mm

Issue 389016: Address post-commit comments from codereview.chromium.org/371059 and codereview.chromium.org/293019 (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/bookmark_bar_view.mm ('k') | chrome/browser/cocoa/download_item_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698