summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/toolbar_star_toggle.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-18 22:26:53 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-18 22:26:53 +0000
commitcb71491f6fd9eb062ecbce3df5ca543c77652d91 (patch)
tree2a2eba85ee8a57f207bbb3241f41e1b01c55c97f /chrome/browser/views/toolbar_star_toggle.h
parent2c36d61f64d9383dc90576164e3f09b313e2f7a7 (diff)
downloadchromium_src-cb71491f6fd9eb062ecbce3df5ca543c77652d91.zip
chromium_src-cb71491f6fd9eb062ecbce3df5ca543c77652d91.tar.gz
chromium_src-cb71491f6fd9eb062ecbce3df5ca543c77652d91.tar.bz2
Fix two problems with bookmarking and fullscreen mode:
* The bubble didn't close when toggling in/out of fullscreen mode. This was because we only ever closed on an activation change, rather than on a window move. Made the bubble close when the window moves. This required refactoring the bubble code to have a static instance; once I did that I also cleaned up the rest of the code a bit to not check if the bubble was already showing, and just let the bookmark bubble itself take care of this. * The bubble positioning was wrong in fullscreen mode. This was because the toolbar layout was in turn wrong in fullscreen mode. Made the toolbars able to handle being 0-height. BUG=534 TEST=Bookmark a page and hit F11. The bubble should disappear. Hit ctrl-D. The bubble should appear at the right spot, not floating in the middle of the screen. Hit F11 again. The bubble should disappear, and the toolbar button should be drawn undepressed. Review URL: http://codereview.chromium.org/21479 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9982 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/toolbar_star_toggle.h')
-rw-r--r--chrome/browser/views/toolbar_star_toggle.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/chrome/browser/views/toolbar_star_toggle.h b/chrome/browser/views/toolbar_star_toggle.h
index 0553894..f9b0a9a 100644
--- a/chrome/browser/views/toolbar_star_toggle.h
+++ b/chrome/browser/views/toolbar_star_toggle.h
@@ -24,8 +24,6 @@ class ToolbarStarToggle : public views::ToggleButton,
// If the bubble isn't showing, shows it.
void ShowStarBubble(const GURL& url, bool newly_bookmarked);
- bool is_bubble_showing() const { return is_bubble_showing_; }
-
// Overridden to update ignore_click_ based on whether the mouse was clicked
// quickly after the bubble was hidden.
virtual bool OnMousePressed(const views::MouseEvent& e);
@@ -57,9 +55,6 @@ class ToolbarStarToggle : public views::ToggleButton,
// the amount of time between when the bubble clicked and now.
bool ignore_click_;
- // Is the bubble showing?
- bool is_bubble_showing_;
-
DISALLOW_EVIL_CONSTRUCTORS(ToolbarStarToggle);
};