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

Side by Side Diff: chrome/browser/ui/confirm_bubble_model.cc

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 years, 1 month 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/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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_list_win.cc ('k') | chrome/browser/ui/find_bar/find_bar_host_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698