diff options
author | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-25 00:42:58 +0000 |
---|---|---|
committer | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-25 00:42:58 +0000 |
commit | ccc6118cf1b753febff945ab984bf0efec5cdd6e (patch) | |
tree | f3136a4a8267eaeca1e786b2429cba339c2eb8b3 /ash/launcher/launcher_view.h | |
parent | 42713f747e45ec2d4d754f449ba8a0edf5deffe6 (diff) | |
download | chromium_src-ccc6118cf1b753febff945ab984bf0efec5cdd6e.zip chromium_src-ccc6118cf1b753febff945ab984bf0efec5cdd6e.tar.gz chromium_src-ccc6118cf1b753febff945ab984bf0efec5cdd6e.tar.bz2 |
ash: Extend launcher first button to include leading inset.
And minor coding style fixes.
BUG=120507
TEST=Verify fix for issue 120507.
Review URL: https://chromiumcodereview.appspot.com/10409083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138951 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/launcher/launcher_view.h')
-rw-r--r-- | ash/launcher/launcher_view.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ash/launcher/launcher_view.h b/ash/launcher/launcher_view.h index 70d7e37..6f200cd 100644 --- a/ash/launcher/launcher_view.h +++ b/ash/launcher/launcher_view.h @@ -122,7 +122,7 @@ class ASH_EXPORT LauncherView : public views::View, // Returns the range (in the model) the item at the specified index can be // dragged to. - std::pair<int,int> GetDragRange(int index); + std::pair<int, int> GetDragRange(int index); // If there is a drag operation in progress it's canceled. If |modified_index| // is valid, the new position of the corresponding item is returned. @@ -137,6 +137,11 @@ class ASH_EXPORT LauncherView : public views::View, // Shows the overflow menu. void ShowOverflowMenu(); + // Update first launcher button's padding. This method adds padding to the + // first button to include the leading inset. It needs to be called once on + // button creation and every time when shelf alignment is changed. + void UpdateFirstButtonPadding(); + // Overridden from views::View: virtual gfx::Size GetPreferredSize() OVERRIDE; virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; |