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

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

Issue 8746001: Rebase ConfirmBubble on the new views bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 #ifndef CHROME_BROWSER_UI_CONFIRM_BUBBLE_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_CONFIRM_BUBBLE_MODEL_H_
6 #define CHROME_BROWSER_UI_CONFIRM_BUBBLE_MODEL_H_ 6 #define CHROME_BROWSER_UI_CONFIRM_BUBBLE_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Returns the text of the link to be displayed, if any. Otherwise returns 59 // Returns the text of the link to be displayed, if any. Otherwise returns
60 // and empty string. 60 // and empty string.
61 virtual string16 GetLinkText() const; 61 virtual string16 GetLinkText() const;
62 62
63 // Called when the Link is clicked. 63 // Called when the Link is clicked.
64 virtual void LinkClicked(); 64 virtual void LinkClicked();
65 65
66 // Creates a bubble and shows it with its top center at the specified 66 // Creates a bubble and shows it with its top center at the specified
67 // |origin|. A bubble created by this function takes ownership of the 67 // |origin|. A bubble created by this function takes ownership of the
68 // specified |model|. 68 // specified |model|.
69 static void Show(gfx::NativeView view, 69 static void Show(const gfx::Point& origin, ConfirmBubbleModel* model);
Hironori Bono 2011/11/30 05:30:03 Mac needs gfx::NativeView to create an NSView. Is
msw 2011/11/30 06:51:38 Done.
70 const gfx::Point& origin,
71 ConfirmBubbleModel* model);
72 70
73 private: 71 private:
74 DISALLOW_COPY_AND_ASSIGN(ConfirmBubbleModel); 72 DISALLOW_COPY_AND_ASSIGN(ConfirmBubbleModel);
75 }; 73 };
76 74
77 #endif // CHROME_BROWSER_UI_CONFIRM_BUBBLE_MODEL_H_ 75 #endif // CHROME_BROWSER_UI_CONFIRM_BUBBLE_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/spellchecker_submenu_observer.cc ('k') | chrome/browser/ui/confirm_bubble_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698