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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_cocoa.mm

Issue 6913026: Compact Navigation prototype (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Clang build fix. After commit/revert. Created 9 years, 7 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 #include "chrome/browser/ui/panels/panel_browser_window_cocoa.h" 5 #include "chrome/browser/ui/panels/panel_browser_window_cocoa.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/ui/panels/panel.h" 8 #include "chrome/browser/ui/panels/panel.h"
9 #include "chrome/browser/ui/panels/panel_window_controller_cocoa.h" 9 #include "chrome/browser/ui/panels/panel_window_controller_cocoa.h"
10 10
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 } 327 }
328 328
329 void PanelBrowserWindowCocoa::Paste() { 329 void PanelBrowserWindowCocoa::Paste() {
330 NOTIMPLEMENTED(); 330 NOTIMPLEMENTED();
331 } 331 }
332 332
333 void PanelBrowserWindowCocoa::ToggleTabStripMode() { 333 void PanelBrowserWindowCocoa::ToggleTabStripMode() {
334 NOTIMPLEMENTED(); 334 NOTIMPLEMENTED();
335 } 335 }
336 336
337 void PanelBrowserWindowCocoa::ToggleUseCompactNavigationBar() {
338 NOTIMPLEMENTED();
339 }
340
337 #if defined(OS_MACOSX) 341 #if defined(OS_MACOSX)
338 void PanelBrowserWindowCocoa::OpenTabpose() { 342 void PanelBrowserWindowCocoa::OpenTabpose() {
339 NOTIMPLEMENTED(); 343 NOTIMPLEMENTED();
340 } 344 }
341 #endif 345 #endif
342 346
343 void PanelBrowserWindowCocoa::PrepareForInstant() { 347 void PanelBrowserWindowCocoa::PrepareForInstant() {
344 NOTIMPLEMENTED(); 348 NOTIMPLEMENTED();
345 } 349 }
346 350
(...skipping 22 matching lines...) Expand all
369 NSRect PanelBrowserWindowCocoa::ConvertCoordinatesToCocoa( 373 NSRect PanelBrowserWindowCocoa::ConvertCoordinatesToCocoa(
370 const gfx::Rect& bounds) { 374 const gfx::Rect& bounds) {
371 // Flip coordinates based on the primary screen. 375 // Flip coordinates based on the primary screen.
372 NSScreen* screen = [[NSScreen screens] objectAtIndex:0]; 376 NSScreen* screen = [[NSScreen screens] objectAtIndex:0];
373 377
374 return NSMakeRect( 378 return NSMakeRect(
375 bounds.x(), NSHeight([screen frame]) - bounds.height() - bounds.y(), 379 bounds.x(), NSHeight([screen frame]) - bounds.height() - bounds.y(),
376 bounds.width(), bounds.height()); 380 bounds.width(), bounds.height());
377 } 381 }
378 382
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window_cocoa.h ('k') | chrome/browser/ui/tabs/tab_menu_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698