Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2812)

Unified Diff: chrome/browser/chromeos/frame/browser_view.cc

Issue 1171002: Some layout related fixes for the app launchers.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/views/app_launcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/frame/browser_view.cc
===================================================================
--- chrome/browser/chromeos/frame/browser_view.cc (revision 42364)
+++ chrome/browser/chromeos/frame/browser_view.cc (working copy)
@@ -33,6 +33,7 @@
#include "views/controls/button/button.h"
#include "views/controls/button/image_button.h"
#include "views/controls/menu/menu_2.h"
+#include "views/widget/root_view.h"
#include "views/window/hit_test.h"
#include "views/window/window.h"
@@ -446,7 +447,11 @@
// views::ButtonListener overrides.
void BrowserView::ButtonPressed(views::Button* sender,
const views::Event& event) {
- AppLauncher::Show(browser());
+ gfx::Rect bounds = main_menu_button_->bounds();
+ gfx::Point origin = bounds.origin();
+ views::RootView::ConvertPointToScreen(this, &origin);
+ bounds.set_origin(origin);
+ ::AppLauncher::Show(browser(), bounds);
}
// views::ContextMenuController overrides.
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/views/app_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698