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

Side by Side Diff: chrome/browser/ui/intents/web_intent_picker.h

Issue 10542105: TabContentsWrapper -> TabContents, part 42. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 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
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_INTENTS_WEB_INTENT_PICKER_H_ 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_
6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_ 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "ui/gfx/size.h" 14 #include "ui/gfx/size.h"
15 15
16 class TabContents; 16 class TabContents;
17 typedef TabContents TabContentsWrapper;
18 class WebIntentPickerDelegate; 17 class WebIntentPickerDelegate;
19 class WebIntentPickerModel; 18 class WebIntentPickerModel;
20 19
21 namespace content { 20 namespace content {
22 class WebContents; 21 class WebContents;
23 } 22 }
24 23
25 // Base class for the web intent picker dialog. 24 // Base class for the web intent picker dialog.
26 class WebIntentPicker { 25 class WebIntentPicker {
27 public: 26 public:
28 // Platform specific factory function. This function will automatically show 27 // Platform specific factory function. This function will automatically show
29 // the picker. 28 // the picker.
30 static WebIntentPicker* Create(TabContentsWrapper* wrapper, 29 static WebIntentPicker* Create(TabContents* tab_contents,
31 WebIntentPickerDelegate* delegate, 30 WebIntentPickerDelegate* delegate,
32 WebIntentPickerModel* model); 31 WebIntentPickerModel* model);
33 32
34 // Hides the UI for this picker, and destroys its UI. 33 // Hides the UI for this picker, and destroys its UI.
35 virtual void Close() = 0; 34 virtual void Close() = 0;
36 35
37 // Sets the action string of the picker, e.g., 36 // Sets the action string of the picker, e.g.,
38 // "Which service should be used for sharing?". 37 // "Which service should be used for sharing?".
39 virtual void SetActionString(const string16& action) = 0; 38 virtual void SetActionString(const string16& action) = 0;
40 39
(...skipping 26 matching lines...) Expand all
67 66
68 // Get the star image IDs to use for the nth star (out of 5), given a 67 // Get the star image IDs to use for the nth star (out of 5), given a
69 // |rating| in the range [0, 5]. 68 // |rating| in the range [0, 5].
70 static int GetNthStarImageIdFromCWSRating(double rating, int index); 69 static int GetNthStarImageIdFromCWSRating(double rating, int index);
71 70
72 protected: 71 protected:
73 virtual ~WebIntentPicker() {} 72 virtual ~WebIntentPicker() {}
74 }; 73 };
75 74
76 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_ 75 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698