diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-25 21:30:31 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-25 21:30:31 +0000 |
commit | d4e72a0a7f1087853e704e6a7cbebfdaf8ccdbca (patch) | |
tree | a2daddbe92622a6d0177b057ce1d9eab67f09a60 /chrome/browser/cocoa/tab_window_controller.h | |
parent | d351c9065715a3a989c8ecc322306d457e843780 (diff) | |
download | chromium_src-d4e72a0a7f1087853e704e6a7cbebfdaf8ccdbca.zip chromium_src-d4e72a0a7f1087853e704e6a7cbebfdaf8ccdbca.tar.gz chromium_src-d4e72a0a7f1087853e704e6a7cbebfdaf8ccdbca.tar.bz2 |
[Mac] Add methods to prevent tab detaching or window moving if needed. Modify tab view to respect these new settings. Prereq for fullscreen.
(Changes really made by viettrungluu@chromium.org.)
BUG=31638
TEST=Tab dragging and window moving should still work when not in fullscreen mode.
Review URL: http://codereview.chromium.org/554064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37045 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/tab_window_controller.h')
-rw-r--r-- | chrome/browser/cocoa/tab_window_controller.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/chrome/browser/cocoa/tab_window_controller.h b/chrome/browser/cocoa/tab_window_controller.h index 850b203..8598766 100644 --- a/chrome/browser/cocoa/tab_window_controller.h +++ b/chrome/browser/cocoa/tab_window_controller.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -76,10 +76,13 @@ // implementation. - (void)removePlaceholder; -// Returns YES if tab dragging is currently allowed. Any number of things -// can choose to disable it, such as pending animations. The default is to -// always return YES. Subclasses should override as appropriate. +// The follow return YES if tab dragging/tab tearing (off the tab strip)/window +// movement is currently allowed. Any number of things can choose to disable it, +// such as pending animations. The default implementations always return YES. +// Subclasses should override as appropriate. - (BOOL)tabDraggingAllowed; +- (BOOL)tabTearingAllowed; +- (BOOL)windowMovementAllowed; // Show or hide the new tab button. The button is hidden immediately, but // waits until the next call to |-layoutTabs| to show it again. |