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

Side by Side Diff: chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.cc

Issue 9909001: Fix some grammar in chrome/browser/ui/gtk/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/gtk/extensions/extension_installed_bubble_gtk.h" 5 #include "chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 toolbar->chevron() : NULL; 155 toolbar->chevron() : NULL;
156 } 156 }
157 } else if (type_ == PAGE_ACTION) { 157 } else if (type_ == PAGE_ACTION) {
158 LocationBarViewGtk* location_bar_view = 158 LocationBarViewGtk* location_bar_view =
159 browser_window->GetToolbar()->GetLocationBarView(); 159 browser_window->GetToolbar()->GetLocationBarView();
160 location_bar_view->SetPreviewEnabledPageAction(extension_->page_action(), 160 location_bar_view->SetPreviewEnabledPageAction(extension_->page_action(),
161 true); // preview_enabled 161 true); // preview_enabled
162 reference_widget = location_bar_view->GetPageActionWidget( 162 reference_widget = location_bar_view->GetPageActionWidget(
163 extension_->page_action()); 163 extension_->page_action());
164 // glib delays recalculating layout, but we need reference_widget to know 164 // glib delays recalculating layout, but we need reference_widget to know
165 // it's coordinates, so we force a check_resize here. 165 // its coordinates, so we force a check_resize here.
166 gtk_container_check_resize(GTK_CONTAINER( 166 gtk_container_check_resize(GTK_CONTAINER(
167 browser_window->GetToolbar()->widget())); 167 browser_window->GetToolbar()->widget()));
168 DCHECK(reference_widget); 168 DCHECK(reference_widget);
169 } else if (type_ == OMNIBOX_KEYWORD) { 169 } else if (type_ == OMNIBOX_KEYWORD) {
170 LocationBarViewGtk* location_bar_view = 170 LocationBarViewGtk* location_bar_view =
171 browser_window->GetToolbar()->GetLocationBarView(); 171 browser_window->GetToolbar()->GetLocationBarView();
172 reference_widget = location_bar_view->location_entry_widget(); 172 reference_widget = location_bar_view->location_entry_widget();
173 DCHECK(reference_widget); 173 DCHECK(reference_widget);
174 } 174 }
175 175
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 // on all references being cleared before it is destroyed. 320 // on all references being cleared before it is destroyed.
321 MessageLoopForUI::current()->PostTask( 321 MessageLoopForUI::current()->PostTask(
322 FROM_HERE, 322 FROM_HERE,
323 base::Bind(&ExtensionInstalledBubbleGtk::Close, this)); 323 base::Bind(&ExtensionInstalledBubbleGtk::Close, this));
324 } 324 }
325 325
326 void ExtensionInstalledBubbleGtk::Close() { 326 void ExtensionInstalledBubbleGtk::Close() {
327 Release(); // Balanced in ctor. 327 Release(); // Balanced in ctor.
328 bubble_ = NULL; 328 bubble_ = NULL;
329 } 329 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_titlebar.h ('k') | chrome/browser/ui/gtk/tabstrip_origin_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698