| 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/profiles/avatar_base_controller.h" | 5 #import "chrome/browser/ui/cocoa/profiles/avatar_base_controller.h" |
| 6 | 6 |
| 7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| 11 #include "chrome/browser/profiles/profile_avatar_icon_util.h" | 11 #include "chrome/browser/profiles/profile_avatar_icon_util.h" |
| 12 #include "chrome/browser/profiles/profile_manager.h" | 12 #include "chrome/browser/profiles/profile_manager.h" |
| 13 #include "chrome/browser/profiles/profile_metrics.h" | 13 #include "chrome/browser/profiles/profile_metrics.h" |
| 14 #include "chrome/browser/profiles/profile_window.h" | 14 #include "chrome/browser/profiles/profile_window.h" |
| 15 #include "chrome/browser/profiles/profiles_state.h" | 15 #include "chrome/browser/profiles/profiles_state.h" |
| 16 #include "chrome/browser/signin/chrome_signin_helper.h" | 16 #include "chrome/browser/signin/chrome_signin_helper.h" |
| 17 #include "chrome/browser/ui/browser.h" | 17 #include "chrome/browser/ui/browser.h" |
| 18 #include "chrome/browser/ui/browser_commands.h" | 18 #include "chrome/browser/ui/browser_commands.h" |
| 19 #include "chrome/browser/ui/browser_window.h" | 19 #include "chrome/browser/ui/browser_window.h" |
| 20 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | 20 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
| 21 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 21 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 22 #include "chrome/browser/ui/cocoa/l10n_util.h" | 22 #include "chrome/browser/ui/cocoa/l10n_util.h" |
| 23 #import "chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h" | |
| 24 #import "chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h" | 23 #import "chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h" |
| 25 #include "components/signin/core/common/profile_management_switches.h" | 24 #include "components/signin/core/common/profile_management_switches.h" |
| 26 #include "ui/base/cocoa/cocoa_base_utils.h" | 25 #include "ui/base/cocoa/cocoa_base_utils.h" |
| 27 | 26 |
| 28 // Space between the avatar icon and the avatar menu bubble. | 27 // Space between the avatar icon and the avatar menu bubble. |
| 29 const CGFloat kMenuYOffsetAdjust = 1.0; | 28 const CGFloat kMenuYOffsetAdjust = 1.0; |
| 30 // Offset needed to align the edge of the avatar bubble with the edge of the | 29 // Offset needed to align the edge of the avatar bubble with the edge of the |
| 31 // avatar button. | 30 // avatar button. |
| 32 const CGFloat kMenuXOffsetAdjust = 1.0; | 31 const CGFloat kMenuXOffsetAdjust = 1.0; |
| 33 | 32 |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 } | 241 } |
| 243 | 242 |
| 244 - (void)setErrorStatus:(BOOL)hasError { | 243 - (void)setErrorStatus:(BOOL)hasError { |
| 245 } | 244 } |
| 246 | 245 |
| 247 - (BaseBubbleController*)menuController { | 246 - (BaseBubbleController*)menuController { |
| 248 return menuController_; | 247 return menuController_; |
| 249 } | 248 } |
| 250 | 249 |
| 251 @end | 250 @end |
| OLD | NEW |