| OLD | NEW |
| 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 TabContentsWrapper; | 16 class TabContents; |
| 17 typedef TabContents TabContentsWrapper; |
| 17 class WebIntentPickerDelegate; | 18 class WebIntentPickerDelegate; |
| 18 class WebIntentPickerModel; | 19 class WebIntentPickerModel; |
| 19 | 20 |
| 20 namespace content { | 21 namespace content { |
| 21 class WebContents; | 22 class WebContents; |
| 22 } | 23 } |
| 23 | 24 |
| 24 // Base class for the web intent picker dialog. | 25 // Base class for the web intent picker dialog. |
| 25 class WebIntentPicker { | 26 class WebIntentPicker { |
| 26 public: | 27 public: |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 67 |
| 67 // Get the star image IDs to use for the nth star (out of 5), given a | 68 // Get the star image IDs to use for the nth star (out of 5), given a |
| 68 // |rating| in the range [0, 5]. | 69 // |rating| in the range [0, 5]. |
| 69 static int GetNthStarImageIdFromCWSRating(double rating, int index); | 70 static int GetNthStarImageIdFromCWSRating(double rating, int index); |
| 70 | 71 |
| 71 protected: | 72 protected: |
| 72 virtual ~WebIntentPicker() {} | 73 virtual ~WebIntentPicker() {} |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_ | 76 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_ |
| OLD | NEW |