| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |