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

Unified Diff: chrome/browser/tab_contents/spellchecker_submenu_observer.cc

Issue 8746001: Rebase ConfirmBubble on the new views bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore the ConfirmBubbleModel::Show NativeView argument. Created 9 years, 1 month 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 | « no previous file | chrome/browser/ui/confirm_bubble_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/spellchecker_submenu_observer.cc
diff --git a/chrome/browser/tab_contents/spellchecker_submenu_observer.cc b/chrome/browser/tab_contents/spellchecker_submenu_observer.cc
index b8f31ae7de4ec1b8b3195330771a2294d127d264..479ced3dd59c58b409b0166cd699f93da60ffd96 100644
--- a/chrome/browser/tab_contents/spellchecker_submenu_observer.cc
+++ b/chrome/browser/tab_contents/spellchecker_submenu_observer.cc
@@ -207,9 +207,9 @@ void SpellCheckerSubMenuObserver::ExecuteCommand(int command_id) {
// "Stop asking Google for spelling suggestions" item, we directly update
// the profile and stop integrating the spelling service immediately.
if (!integrate_spelling_service_) {
- gfx::Rect bounds = rvh->view()->GetViewBounds();
- bounds.Inset(bounds.width() / 2, 0);
- ConfirmBubbleModel::Show(rvh->view()->GetNativeView(), bounds.origin(),
+ gfx::Rect rect = rvh->view()->GetViewBounds();
+ ConfirmBubbleModel::Show(rvh->view()->GetNativeView(),
+ gfx::Point(rect.CenterPoint().x(), rect.y()),
new SpellingBubbleModel(proxy_->GetProfile()));
} else {
Profile* profile = proxy_->GetProfile();
« no previous file with comments | « no previous file | chrome/browser/ui/confirm_bubble_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698