Chromium Code Reviews| 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 #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 Loading... | |
| 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_ |
| OLD | NEW |