diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-05 01:47:23 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-05 01:47:23 +0000 |
commit | 1fcfb9986bb54e8a8b8f98b3eefcf99486f70bf7 (patch) | |
tree | 7f8d2de39c9774a1f45afda0345b3aee83f38025 /ash/launcher/tabbed_launcher_button.cc | |
parent | 51772fa550db198e7741414aeded8848191b6308 (diff) | |
download | chromium_src-1fcfb9986bb54e8a8b8f98b3eefcf99486f70bf7.zip chromium_src-1fcfb9986bb54e8a8b8f98b3eefcf99486f70bf7.tar.gz chromium_src-1fcfb9986bb54e8a8b8f98b3eefcf99486f70bf7.tar.bz2 |
Use the correct launcher assets for shelf alignment.
Cleanup: remove redundant shelf code.
- replaces switch to get values for alignment with template
- eliminate alignment member variables and use shelf_layout_manager where possible.
other minor clean ups: remove unnecessary namespace, use member variable.
BUG=151417
TEST=none
Review URL: https://chromiumcodereview.appspot.com/11434099
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171120 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/launcher/tabbed_launcher_button.cc')
-rw-r--r-- | ash/launcher/tabbed_launcher_button.cc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/ash/launcher/tabbed_launcher_button.cc b/ash/launcher/tabbed_launcher_button.cc index 7bd5682..517607c 100644 --- a/ash/launcher/tabbed_launcher_button.cc +++ b/ash/launcher/tabbed_launcher_button.cc @@ -115,17 +115,20 @@ const gfx::ImageSkia* TabbedLauncherButton* TabbedLauncherButton::Create( views::ButtonListener* listener, LauncherButtonHost* host, + ShelfLayoutManager* shelf_layout_manager, IncognitoState is_incognito) { - TabbedLauncherButton* button = - new TabbedLauncherButton(listener, host, is_incognito); + TabbedLauncherButton* button = new TabbedLauncherButton( + listener, host, shelf_layout_manager, is_incognito); button->Init(); return button; } -TabbedLauncherButton::TabbedLauncherButton(views::ButtonListener* listener, - LauncherButtonHost* host, - IncognitoState is_incognito) - : LauncherButton(listener, host), +TabbedLauncherButton::TabbedLauncherButton( + views::ButtonListener* listener, + LauncherButtonHost* host, + ShelfLayoutManager* shelf_layout_manager, + IncognitoState is_incognito) + : LauncherButton(listener, host, shelf_layout_manager), is_incognito_(is_incognito) { set_accessibility_focusable(true); } |