summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/extension_view_mac.h
diff options
context:
space:
mode:
authorskerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-25 19:28:10 +0000
committerskerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-25 19:28:10 +0000
commitcda45c034ced09ca661c538c871c602372ff032a (patch)
treeb48c8562448e16ef605e25b114aa1160218ac471 /chrome/browser/cocoa/extension_view_mac.h
parent68c243b40bef0b0d55d8783a0625146d7709bb8f (diff)
downloadchromium_src-cda45c034ced09ca661c538c871c602372ff032a.zip
chromium_src-cda45c034ced09ca661c538c871c602372ff032a.tar.gz
chromium_src-cda45c034ced09ca661c538c871c602372ff032a.tar.bz2
Disable scroll bars on resizing popups below a maximum size.
This CL requires a patch to webkit to compile. That patch is tracked here: https://bugs.webkit.org/show_bug.cgi?id=35257 This CL makes a change on Mac and Linux. Windows will follow in a sepperate change. BUG=30247 TEST=Manual testing using the test case attached to the bug and the sample extensions. Review URL: http://codereview.chromium.org/657012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40036 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/extension_view_mac.h')
-rw-r--r--chrome/browser/cocoa/extension_view_mac.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/extension_view_mac.h b/chrome/browser/cocoa/extension_view_mac.h
index 4ce4c13..5fb0f54 100644
--- a/chrome/browser/cocoa/extension_view_mac.h
+++ b/chrome/browser/cocoa/extension_view_mac.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.
@@ -49,6 +49,15 @@ class ExtensionViewMac {
// connection.
void RenderViewCreated();
+ // The minimum/maximum dimensions of the popup.
+ // The minimum is just a little larger than the size of the button itself.
+ // The maximum is an arbitrary number that should be smaller than most
+ // screens.
+ static const CGFloat kMinWidth;
+ static const CGFloat kMinHeight;
+ static const CGFloat kMaxWidth;
+ static const CGFloat kMaxHeight;
+
private:
RenderViewHost* render_view_host() const;