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

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

Issue 10689057: browser: Put more files in chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/confirm_bubble.h ('k') | chrome/browser/ui/gtk/browser_window_gtk.cc » ('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) 2012 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 #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"
11 11
12 namespace gfx { 12 namespace gfx {
13 class Image; 13 class Image;
14 } 14 }
15 15
16 // An interface implemented by objects wishing to control an ConfirmBubbleView. 16 // An interface implemented by objects wishing to control an ConfirmBubbleView.
17 // To use this class to implement a bubble menu, we need two steps: 17 // To use this class to implement a bubble menu, we need two steps:
18 // 1. Implement a class derived from this class. 18 // 1. Implement a class derived from this class.
19 // 2. Call browser::ShowConfirmBubble() with the class implemented in 1. 19 // 2. Call chrome::ShowConfirmBubble() with the class implemented in 1.
20 class ConfirmBubbleModel { 20 class ConfirmBubbleModel {
21 public: 21 public:
22 enum BubbleButton { 22 enum BubbleButton {
23 BUTTON_NONE = 0, 23 BUTTON_NONE = 0,
24 BUTTON_OK = 1 << 0, 24 BUTTON_OK = 1 << 0,
25 BUTTON_CANCEL = 1 << 1, 25 BUTTON_CANCEL = 1 << 1,
26 }; 26 };
27 27
28 ConfirmBubbleModel(); 28 ConfirmBubbleModel();
29 virtual ~ConfirmBubbleModel(); 29 virtual ~ConfirmBubbleModel();
(...skipping 29 matching lines...) Expand all
59 virtual string16 GetLinkText() const; 59 virtual string16 GetLinkText() const;
60 60
61 // Called when the Link is clicked. 61 // Called when the Link is clicked.
62 virtual void LinkClicked(); 62 virtual void LinkClicked();
63 63
64 private: 64 private:
65 DISALLOW_COPY_AND_ASSIGN(ConfirmBubbleModel); 65 DISALLOW_COPY_AND_ASSIGN(ConfirmBubbleModel);
66 }; 66 };
67 67
68 #endif // CHROME_BROWSER_UI_CONFIRM_BUBBLE_MODEL_H_ 68 #endif // CHROME_BROWSER_UI_CONFIRM_BUBBLE_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/confirm_bubble.h ('k') | chrome/browser/ui/gtk/browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698