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

Side by Side Diff: chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc

Issue 7054052: Move more from Window onto Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view. h" 5 #include "chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view. h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" 9 #include "chrome/browser/autocomplete/autocomplete_popup_model.h"
10 #include "chrome/browser/instant/instant_confirm_dialog.h" 10 #include "chrome/browser/instant/instant_confirm_dialog.h"
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 } 697 }
698 698
699 void AutocompletePopupContentsView::UserPressedOptIn(bool opt_in) { 699 void AutocompletePopupContentsView::UserPressedOptIn(bool opt_in) {
700 delete opt_in_view_; 700 delete opt_in_view_;
701 opt_in_view_ = NULL; 701 opt_in_view_ = NULL;
702 PromoCounter* counter = model_->profile()->GetInstantPromoCounter(); 702 PromoCounter* counter = model_->profile()->GetInstantPromoCounter();
703 DCHECK(counter); 703 DCHECK(counter);
704 counter->Hide(); 704 counter->Hide();
705 if (opt_in) { 705 if (opt_in) {
706 browser::ShowInstantConfirmDialogIfNecessary( 706 browser::ShowInstantConfirmDialogIfNecessary(
707 location_bar_->GetWindow()->GetNativeWindow(), model_->profile()); 707 location_bar_->GetWidget()->GetNativeWindow(), model_->profile());
708 } 708 }
709 UpdatePopupAppearance(); 709 UpdatePopupAppearance();
710 } 710 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/accessibility_event_router_views.cc ('k') | chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698