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

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

Issue 8697001: Implement confirm bubble for Mac. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « chrome/browser/ui/cocoa/confirm_bubble_view.mm ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 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/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)
(...skipping 21 matching lines...) Expand all
33 void ConfirmBubbleModel::Cancel() { 33 void ConfirmBubbleModel::Cancel() {
34 } 34 }
35 35
36 string16 ConfirmBubbleModel::GetLinkText() const { 36 string16 ConfirmBubbleModel::GetLinkText() const {
37 return string16(); 37 return string16();
38 } 38 }
39 39
40 void ConfirmBubbleModel::LinkClicked() { 40 void ConfirmBubbleModel::LinkClicked() {
41 } 41 }
42 42
43 #if !defined(OS_MACOSX)
Peter Kasting 2012/01/10 18:52:03 Don't do things this way. If you can't put the Ob
Hironori Bono 2012/01/11 06:36:40 Done. Thanks for your suggestion. (I should have m
43 void ConfirmBubbleModel::Show(gfx::NativeView view, 44 void ConfirmBubbleModel::Show(gfx::NativeView view,
44 const gfx::Point& origin, 45 const gfx::Point& origin,
45 ConfirmBubbleModel* model) { 46 ConfirmBubbleModel* model) {
46 #if defined(TOOLKIT_VIEWS) 47 #if defined(TOOLKIT_VIEWS)
47 ConfirmBubbleView* bubble_view = new ConfirmBubbleView(origin, model); 48 ConfirmBubbleView* bubble_view = new ConfirmBubbleView(origin, model);
48 browser::CreateViewsBubble(bubble_view); 49 browser::CreateViewsBubble(bubble_view);
49 bubble_view->Show(); 50 bubble_view->Show();
50 #else 51 #else
51 NOTIMPLEMENTED(); // Bug 99130: Implement it. 52 NOTIMPLEMENTED(); // Bug 99130: Implement it.
52 #endif 53 #endif
53 } 54 }
54 55 #endif
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/confirm_bubble_view.mm ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698