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

Side by Side Diff: chrome/browser/ui/gtk/confirm_bubble_gtk.cc

Issue 10689057: browser: Put more files in chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/confirm_bubble_gtk.h" 5 #include "chrome/browser/ui/gtk/confirm_bubble_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 bubble_->Close(); 171 bubble_->Close();
172 } 172 }
173 173
174 void ConfirmBubbleGtk::OnLinkButton(GtkWidget* sender) { 174 void ConfirmBubbleGtk::OnLinkButton(GtkWidget* sender) {
175 model_->LinkClicked(); 175 model_->LinkClicked();
176 // TODO(hbono): this code prevents the model from updating this view when we 176 // TODO(hbono): this code prevents the model from updating this view when we
177 // click this link. We should ask the model if we can close this view. 177 // click this link. We should ask the model if we can close this view.
178 bubble_->Close(); 178 bubble_->Close();
179 } 179 }
180 180
181 namespace browser { 181 namespace chrome {
182 182
183 void ShowConfirmBubble(gfx::NativeView view, 183 void ShowConfirmBubble(gfx::NativeView view,
184 const gfx::Point& origin, 184 const gfx::Point& origin,
185 ConfirmBubbleModel* model) { 185 ConfirmBubbleModel* model) {
186 ConfirmBubbleGtk* bubble = new ConfirmBubbleGtk(view, origin, model); 186 ConfirmBubbleGtk* bubble = new ConfirmBubbleGtk(view, origin, model);
187 bubble->Show(); 187 bubble->Show();
188 } 188 }
189 189
190 } // namespace browser 190 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/chrome_browser_main_extra_parts_gtk.cc ('k') | chrome/browser/ui/gtk/page_info_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698