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

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

Issue 9546001: Support detaching/attaching panels via inter-strip drags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More fix per feedback Created 8 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 } 252 }
253 253
254 void PanelBrowserWindowCocoa::EnsurePanelFullyVisible() { 254 void PanelBrowserWindowCocoa::EnsurePanelFullyVisible() {
255 [controller_ ensureFullyVisible]; 255 [controller_ ensureFullyVisible];
256 } 256 }
257 257
258 void PanelBrowserWindowCocoa::SetPanelAppIconVisibility(bool visible) { 258 void PanelBrowserWindowCocoa::SetPanelAppIconVisibility(bool visible) {
259 // TODO(dimich): to be implemented. 259 // TODO(dimich): to be implemented.
260 } 260 }
261 261
262 void PanelBrowserWindowCocoa::SetPanelAlwaysOnTop(bool on_top) {
263 [controller_ setAlwaysOnTop:on_top];
264 }
265
262 void PanelBrowserWindowCocoa::DidCloseNativeWindow() { 266 void PanelBrowserWindowCocoa::DidCloseNativeWindow() {
263 DCHECK(!isClosed()); 267 DCHECK(!isClosed());
264 panel_->OnNativePanelClosed(); 268 panel_->OnNativePanelClosed();
265 controller_ = NULL; 269 controller_ = NULL;
266 } 270 }
267 271
268 gfx::Size PanelBrowserWindowCocoa::WindowSizeFromContentSize( 272 gfx::Size PanelBrowserWindowCocoa::WindowSizeFromContentSize(
269 const gfx::Size& content_size) const { 273 const gfx::Size& content_size) const {
270 NSWindow* window = [controller_ window]; 274 NSWindow* window = [controller_ window];
271 NSRect content = NSMakeRect(0, 0, 275 NSRect content = NSMakeRect(0, 0,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 return false; 375 return false;
372 } 376 }
373 377
374 bool NativePanelTestingCocoa::IsWindowSizeKnown() const { 378 bool NativePanelTestingCocoa::IsWindowSizeKnown() const {
375 return true; 379 return true;
376 } 380 }
377 381
378 bool NativePanelTestingCocoa::IsAnimatingBounds() const { 382 bool NativePanelTestingCocoa::IsAnimatingBounds() const {
379 return [native_panel_window_->controller_ isAnimatingBounds]; 383 return [native_panel_window_->controller_ isAnimatingBounds];
380 } 384 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698