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

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

Issue 8827011: Panel strip refactor cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Created 9 years 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/tabs/tab_strip_model.h" 8 #include "chrome/browser/tabs/tab_strip_model.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/browser_list.h" 10 #include "chrome/browser/ui/browser_list.h"
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 262
263 gfx::Size PanelBrowserWindowCocoa::IconOnlySize() const { 263 gfx::Size PanelBrowserWindowCocoa::IconOnlySize() const {
264 // TODO(dimich): to be implemented. 264 // TODO(dimich): to be implemented.
265 return gfx::Size(); 265 return gfx::Size();
266 } 266 }
267 267
268 void PanelBrowserWindowCocoa::EnsurePanelFullyVisible() { 268 void PanelBrowserWindowCocoa::EnsurePanelFullyVisible() {
269 // TODO(dimich): to be implemented. 269 // TODO(dimich): to be implemented.
270 } 270 }
271 271
272 void PanelBrowserWindowCocoa::SetPanelAppIconVisibility(bool visible) {
273 // TODO(dimich): to be implemented.
274 }
275
272 void PanelBrowserWindowCocoa::DidCloseNativeWindow() { 276 void PanelBrowserWindowCocoa::DidCloseNativeWindow() {
273 DCHECK(!isClosed()); 277 DCHECK(!isClosed());
274 panel_->OnNativePanelClosed(); 278 panel_->OnNativePanelClosed();
275 controller_ = NULL; 279 controller_ = NULL;
276 } 280 }
277 281
278 gfx::Size PanelBrowserWindowCocoa::WindowSizeFromContentSize( 282 gfx::Size PanelBrowserWindowCocoa::WindowSizeFromContentSize(
279 const gfx::Size& content_size) const { 283 const gfx::Size& content_size) const {
280 NSWindow* window = [controller_ window]; 284 NSWindow* window = [controller_ window];
281 NSRect content = NSMakeRect(0, 0, 285 NSRect content = NSMakeRect(0, 0,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 return false; 376 return false;
373 } 377 }
374 378
375 bool NativePanelTestingCocoa::IsWindowSizeKnown() const { 379 bool NativePanelTestingCocoa::IsWindowSizeKnown() const {
376 return true; 380 return true;
377 } 381 }
378 382
379 bool NativePanelTestingCocoa::IsAnimatingBounds() const { 383 bool NativePanelTestingCocoa::IsAnimatingBounds() const {
380 return [native_panel_window_->controller_ isAnimatingBounds]; 384 return [native_panel_window_->controller_ isAnimatingBounds];
381 } 385 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window_cocoa.h ('k') | chrome/browser/ui/panels/panel_browser_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698