diff options
author | jcivelli@google.com <jcivelli@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-22 23:12:33 +0000 |
---|---|---|
committer | jcivelli@google.com <jcivelli@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-22 23:12:33 +0000 |
commit | cfe5c1375a0dafe47ffb4b9223d33253fc01e8fa (patch) | |
tree | 15e23a948bbec2ee6b20d9a95645a477279e7bf9 /chrome/browser/chromeos/frame | |
parent | ddf8a4b03ca007cc55ead2000aa6b54d0319cd56 (diff) | |
download | chromium_src-cfe5c1375a0dafe47ffb4b9223d33253fc01e8fa.zip chromium_src-cfe5c1375a0dafe47ffb4b9223d33253fc01e8fa.tar.gz chromium_src-cfe5c1375a0dafe47ffb4b9223d33253fc01e8fa.tar.bz2 |
Porting the app launcher to Windows, and adding an experimental flag
so the app launcher shows when you open a new tab.
Also removing the graying-out of the browser when the app launcher is showng for now, as
it is not clear how to make it cross-platform.
BUG=None
TEST=Start Chrome with --app-launcher-new-tab. Opening a new tab
should bring the app launcher (still a prototype at this point).
Review URL: http://codereview.chromium.org/1145001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42280 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/frame')
-rw-r--r-- | chrome/browser/chromeos/frame/browser_view.cc | 8 | ||||
-rw-r--r-- | chrome/browser/chromeos/frame/browser_view.h | 6 |
2 files changed, 3 insertions, 11 deletions
diff --git a/chrome/browser/chromeos/frame/browser_view.cc b/chrome/browser/chromeos/frame/browser_view.cc index f5cd791..a8040ad0 100644 --- a/chrome/browser/chromeos/frame/browser_view.cc +++ b/chrome/browser/chromeos/frame/browser_view.cc @@ -11,7 +11,6 @@ #include "app/menus/simple_menu_model.h" #include "app/theme_provider.h" #include "chrome/app/chrome_dll_resource.h" -#include "chrome/browser/chromeos/app_launcher.h" #include "chrome/browser/chromeos/compact_location_bar_host.h" #include "chrome/browser/chromeos/compact_navigation_bar.h" #include "chrome/browser/chromeos/frame/panel_browser_view.h" @@ -20,6 +19,7 @@ #include "chrome/browser/chromeos/status/status_area_button.h" #include "chrome/browser/chromeos/wm_ipc.h" #include "chrome/browser/view_ids.h" +#include "chrome/browser/views/app_launcher.h" #include "chrome/browser/views/frame/browser_extender.h" #include "chrome/browser/views/frame/browser_frame_gtk.h" #include "chrome/browser/views/frame/browser_view.h" @@ -338,7 +338,6 @@ class BrowserViewLayout : public ::BrowserViewLayout { BrowserView::BrowserView(Browser* browser) : ::BrowserView(browser), - main_menu_(NULL), main_menu_button_(NULL), status_area_(NULL), compact_navigation_bar_(NULL), @@ -458,10 +457,7 @@ void BrowserView::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) { // views::ButtonListener overrides. void BrowserView::ButtonPressed(views::Button* sender, const views::Event& event) { - if (!main_menu_.get()) { - main_menu_.reset(new AppLauncher(browser())); - } - main_menu_->Show(); + AppLauncher::Show(browser()); } // views::ContextMenuController overrides. diff --git a/chrome/browser/chromeos/frame/browser_view.h b/chrome/browser/chromeos/frame/browser_view.h index 44a4ccd..7f38d95 100644 --- a/chrome/browser/chromeos/frame/browser_view.h +++ b/chrome/browser/chromeos/frame/browser_view.h @@ -28,13 +28,12 @@ class BrowserStatusAreaView; class CompactLocationBar; class CompactLocationBarHost; class CompactNavigationBar; -class AppLauncher; class StatusAreaButton; // chromeos::BrowserView adds ChromeOS specific controls and menus to a // BrowserView created with Browser::TYPE_NORMAL. This extender adds controls // to the title bar as follows: -// ____ __ __ +// ____ __ __ // [AppLauncher] / \ \ \ [StatusArea] // // and adds the system context menu to the remaining arae of the titlebar. @@ -96,9 +95,6 @@ class BrowserView : public ::BrowserView, private: void InitSystemMenu(); - // AppLauncher instance. - scoped_ptr<AppLauncher> main_menu_; - // AppLauncher button. views::ImageButton* main_menu_button_; |