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

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

Issue 8681025: Add methods needed for overflow panels to NativePanel interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git try 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 } 239 }
240 240
241 Browser* PanelBrowserWindowCocoa::GetPanelBrowser() const { 241 Browser* PanelBrowserWindowCocoa::GetPanelBrowser() const {
242 return browser(); 242 return browser();
243 } 243 }
244 244
245 void PanelBrowserWindowCocoa::DestroyPanelBrowser() { 245 void PanelBrowserWindowCocoa::DestroyPanelBrowser() {
246 [controller_ close]; 246 [controller_ close];
247 } 247 }
248 248
249 gfx::Size PanelBrowserWindowCocoa::IconOnlySize() const {
250 // TODO(dimich): to be implemented.
251 return gfx::Size();
252 }
253
254 void PanelBrowserWindowCocoa::EnsurePanelFullyVisible() {
255 // TODO(dimich): to be implemented.
256 }
257
249 void PanelBrowserWindowCocoa::DidCloseNativeWindow() { 258 void PanelBrowserWindowCocoa::DidCloseNativeWindow() {
250 DCHECK(!isClosed()); 259 DCHECK(!isClosed());
251 panel_->OnNativePanelClosed(); 260 panel_->OnNativePanelClosed();
252 controller_ = NULL; 261 controller_ = NULL;
253 } 262 }
254 263
255 gfx::Size PanelBrowserWindowCocoa::WindowSizeFromContentSize( 264 gfx::Size PanelBrowserWindowCocoa::WindowSizeFromContentSize(
256 const gfx::Size& content_size) const { 265 const gfx::Size& content_size) const {
257 NSWindow* window = [controller_ window]; 266 NSWindow* window = [controller_ window];
258 NSRect content = NSMakeRect(0, 0, 267 NSRect content = NSMakeRect(0, 0,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 return false; 358 return false;
350 } 359 }
351 360
352 bool NativePanelTestingCocoa::IsWindowSizeKnown() const { 361 bool NativePanelTestingCocoa::IsWindowSizeKnown() const {
353 return true; 362 return true;
354 } 363 }
355 364
356 bool NativePanelTestingCocoa::IsAnimatingBounds() const { 365 bool NativePanelTestingCocoa::IsAnimatingBounds() const {
357 return [native_panel_window_->controller_ isAnimatingBounds]; 366 return [native_panel_window_->controller_ isAnimatingBounds];
358 } 367 }
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