| OLD | NEW |
| 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/confirm_bubble_model.h" | 5 #include "chrome/browser/ui/confirm_bubble_model.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "grit/generated_resources.h" | 8 #include "grit/generated_resources.h" |
| 9 #include "ui/base/l10n/l10n_util.h" | 9 #include "ui/base/l10n/l10n_util.h" |
| 10 | 10 |
| 11 #if defined(TOOLKIT_VIEWS) | 11 #if defined(TOOLKIT_VIEWS) |
| 12 #include "chrome/browser/ui/views/confirm_bubble_view.h" | 12 #include "chrome/browser/ui/views/confirm_bubble_view.h" |
| 13 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
| 14 #include "views/widget/widget.h" | 14 #include "ui/views/widget/widget.h" |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 ConfirmBubbleModel::ConfirmBubbleModel() { | 17 ConfirmBubbleModel::ConfirmBubbleModel() { |
| 18 } | 18 } |
| 19 | 19 |
| 20 ConfirmBubbleModel::~ConfirmBubbleModel() { | 20 ConfirmBubbleModel::~ConfirmBubbleModel() { |
| 21 } | 21 } |
| 22 | 22 |
| 23 int ConfirmBubbleModel::GetButtons() const { | 23 int ConfirmBubbleModel::GetButtons() const { |
| 24 return BUTTON_OK | BUTTON_CANCEL; | 24 return BUTTON_OK | BUTTON_CANCEL; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 53 Bubble* bubble = Bubble::Show(parent, gfx::Rect(origin, gfx::Size()), | 53 Bubble* bubble = Bubble::Show(parent, gfx::Rect(origin, gfx::Size()), |
| 54 views::BubbleBorder::NONE, | 54 views::BubbleBorder::NONE, |
| 55 views::BubbleBorder::ALIGN_ARROW_TO_MID_ANCHOR, | 55 views::BubbleBorder::ALIGN_ARROW_TO_MID_ANCHOR, |
| 56 bubble_view, bubble_view); | 56 bubble_view, bubble_view); |
| 57 bubble->SizeToContents(); | 57 bubble->SizeToContents(); |
| 58 #else | 58 #else |
| 59 NOTIMPLEMENTED(); // Bug 99130: Implement it. | 59 NOTIMPLEMENTED(); // Bug 99130: Implement it. |
| 60 #endif | 60 #endif |
| 61 } | 61 } |
| 62 | 62 |
| OLD | NEW |