| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |