| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ui/cocoa/browser/avatar_button_controller.h" | 5 #import "chrome/browser/ui/cocoa/profiles/avatar_button_controller.h" |
| 6 | 6 |
| 7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
| 8 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
| 9 #include "chrome/browser/profiles/profiles_state.h" | 9 #include "chrome/browser/profiles/profiles_state.h" |
| 10 #include "chrome/browser/themes/theme_service.h" | 10 #include "chrome/browser/themes/theme_service.h" |
| 11 #include "chrome/browser/themes/theme_service_factory.h" | 11 #include "chrome/browser/themes/theme_service_factory.h" |
| 12 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
| 13 #include "chrome/browser/ui/browser_window.h" | 13 #include "chrome/browser/ui/browser_window.h" |
| 14 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 14 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 if (layoutParent) { | 222 if (layoutParent) { |
| 223 // Because the width of the button might have changed, the parent browser | 223 // Because the width of the button might have changed, the parent browser |
| 224 // frame needs to recalculate the button bounds and redraw it. | 224 // frame needs to recalculate the button bounds and redraw it. |
| 225 [[BrowserWindowController | 225 [[BrowserWindowController |
| 226 browserWindowControllerForWindow:browser_->window()->GetNativeWindow()] | 226 browserWindowControllerForWindow:browser_->window()->GetNativeWindow()] |
| 227 layoutSubviews]; | 227 layoutSubviews]; |
| 228 } | 228 } |
| 229 } | 229 } |
| 230 | 230 |
| 231 @end | 231 @end |
| OLD | NEW |