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

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: 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.h » ('j') | chrome/browser/ui/confirm_bubble_model.h » ('J')
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..14281a6827216c69968a61071f1474408ffca7b8 100644
--- a/chrome/browser/tab_contents/spellchecker_submenu_observer.cc
+++ b/chrome/browser/tab_contents/spellchecker_submenu_observer.cc
@@ -207,9 +207,8 @@ 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(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.h » ('j') | chrome/browser/ui/confirm_bubble_model.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698