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

Unified Diff: chrome/browser/ui/panels/panel_window_controller_cocoa.h

Issue 10106008: Change Panel titlebars to activate the panel on click (rather than minimize). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win compile Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/panels/panel_window_controller_cocoa.h
diff --git a/chrome/browser/ui/panels/panel_window_controller_cocoa.h b/chrome/browser/ui/panels/panel_window_controller_cocoa.h
index eaca99eddfab285809959300017ace58d2481807..aff1f8c03b43481935b974293a7ca444d738d500 100644
--- a/chrome/browser/ui/panels/panel_window_controller_cocoa.h
+++ b/chrome/browser/ui/panels/panel_window_controller_cocoa.h
@@ -27,16 +27,6 @@ class PanelBrowserWindowCocoa;
@class PanelTitlebarViewCocoa;
@interface PanelWindowCocoaImpl : ChromeBrowserWindow {
- // Panel windows use a higher priority NSWindowLevel to ensure they are always
- // visible, causing the OS to prefer panel windows when selecting a window
- // to make the key window. To counter this preference, we override
- // -[NSWindow:canBecomeKeyWindow] to restrict when the panel can become the
- // key window to a limited set of scenarios, such as when cycling through
- // windows, when panels are the only remaining windows, when an event
- // triggers window activation, etc. The panel may also be prevented from
- // becoming the key window, regardless of the above scenarios, such as when
- // a panel is minimized.
- BOOL canBecomeKey_; // Defaults to NO.
}
@end
@@ -153,10 +143,6 @@ class PanelBrowserWindowCocoa;
// Turns on user-resizable corners/sides indications and enables live resize.
- (void)enableResizeByMouse:(BOOL)enable;
-// In certain cases (when in a Docked strip for example) we want
-// the standard behavior of activating the app when clicking on the titlebar
-// to be disabled. This way, user can minimize the panel w/o activating it.
-- (BOOL)isActivationByClickingTitlebarEnabled;
@end // @interface PanelWindowController
#endif // CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_
« no previous file with comments | « chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm ('k') | chrome/browser/ui/panels/panel_window_controller_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698