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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_controller.mm

Issue 8356028: Add shortcut to show avatar menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 9 years, 2 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_window_controller.h" 5 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <numeric> 8 #include <numeric>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after
1892 1892
1893 return frame; 1893 return frame;
1894 } 1894 }
1895 1895
1896 - (void)sheetDidEnd:(NSWindow*)sheet 1896 - (void)sheetDidEnd:(NSWindow*)sheet
1897 returnCode:(NSInteger)code 1897 returnCode:(NSInteger)code
1898 context:(void*)context { 1898 context:(void*)context {
1899 [sheet orderOut:self]; 1899 [sheet orderOut:self];
1900 } 1900 }
1901 1901
1902 - (AvatarButtonController*)avatarButtonController {
Robert Sesek 2011/10/20 16:32:33 Move to be in the same order as in the .h after yo
sail 2011/10/20 20:42:49 Done.
1903 return avatarButtonController_.get();
1904 }
1905
1902 @end // @implementation BrowserWindowController 1906 @end // @implementation BrowserWindowController
1903 1907
1904 1908
1905 @implementation BrowserWindowController(Fullscreen) 1909 @implementation BrowserWindowController(Fullscreen)
1906 1910
1907 - (void)handleLionToggleFullscreen { 1911 - (void)handleLionToggleFullscreen {
1908 DCHECK(base::mac::IsOSLionOrLater()); 1912 DCHECK(base::mac::IsOSLionOrLater());
1909 browser_->ExecuteCommand(IDC_FULLSCREEN); 1913 browser_->ExecuteCommand(IDC_FULLSCREEN);
1910 } 1914 }
1911 1915
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
2171 2175
2172 - (BOOL)supportsBookmarkBar { 2176 - (BOOL)supportsBookmarkBar {
2173 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR]; 2177 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR];
2174 } 2178 }
2175 2179
2176 - (BOOL)isTabbedWindow { 2180 - (BOOL)isTabbedWindow {
2177 return browser_->is_type_tabbed(); 2181 return browser_->is_type_tabbed();
2178 } 2182 }
2179 2183
2180 @end // @implementation BrowserWindowController(WindowType) 2184 @end // @implementation BrowserWindowController(WindowType)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698