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

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

Issue 122002: Moving the WM_SETFOCUS message processing out of FocusManager (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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
« no previous file with comments | « chrome/browser/cocoa/browser_window_cocoa.h ('k') | chrome/browser/extensions/extension_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "base/gfx/rect.h" 5 #include "base/gfx/rect.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/sys_string_conversions.h" 7 #include "base/sys_string_conversions.h"
8 #include "chrome/browser/bookmarks/bookmark_utils.h" 8 #include "chrome/browser/bookmarks/bookmark_utils.h"
9 #include "chrome/browser/cocoa/browser_window_cocoa.h" 9 #include "chrome/browser/cocoa/browser_window_cocoa.h"
10 #import "chrome/browser/cocoa/browser_window_controller.h" 10 #import "chrome/browser/cocoa/browser_window_controller.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 void BrowserWindowCocoa::UserChangedTheme() { 243 void BrowserWindowCocoa::UserChangedTheme() {
244 NOTIMPLEMENTED(); 244 NOTIMPLEMENTED();
245 } 245 }
246 246
247 int BrowserWindowCocoa::GetExtraRenderViewHeight() const { 247 int BrowserWindowCocoa::GetExtraRenderViewHeight() const {
248 // Currently this is only used on linux. 248 // Currently this is only used on linux.
249 return 0; 249 return 0;
250 } 250 }
251 251
252 void BrowserWindowCocoa::TabContentsFocused(TabContents* tab_contents) {
253 NOTIMPLEMENTED();
254 }
255
252 void BrowserWindowCocoa::Observe(NotificationType type, 256 void BrowserWindowCocoa::Observe(NotificationType type,
253 const NotificationSource& source, 257 const NotificationSource& source,
254 const NotificationDetails& details) { 258 const NotificationDetails& details) {
255 switch (type.value) { 259 switch (type.value) {
256 // Only the key window gets a direct toggle from the menu. 260 // Only the key window gets a direct toggle from the menu.
257 // Other windows hear about it from the notification. 261 // Other windows hear about it from the notification.
258 case NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED: 262 case NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED:
259 [controller_ toggleBookmarkBar]; 263 [controller_ toggleBookmarkBar];
260 break; 264 break;
261 default: 265 default:
262 NOTREACHED(); // we don't ask for anything else! 266 NOTREACHED(); // we don't ask for anything else!
263 break; 267 break;
264 } 268 }
265 } 269 }
266 270
267 void BrowserWindowCocoa::DestroyBrowser() { 271 void BrowserWindowCocoa::DestroyBrowser() {
268 [controller_ destroyBrowser]; 272 [controller_ destroyBrowser];
269 273
270 // at this point the controller is dead (autoreleased), so 274 // at this point the controller is dead (autoreleased), so
271 // make sure we don't try to reference it any more. 275 // make sure we don't try to reference it any more.
272 } 276 }
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/browser_window_cocoa.h ('k') | chrome/browser/extensions/extension_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698