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> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // Called when an extension is successfully installed via the picker. | 42 // Called when an extension is successfully installed via the picker. |
43 virtual void OnExtensionInstallSuccess(const std::string& id) {} | 43 virtual void OnExtensionInstallSuccess(const std::string& id) {} |
44 | 44 |
45 // Called when an extension installation started via the picker has failed. | 45 // Called when an extension installation started via the picker has failed. |
46 virtual void OnExtensionInstallFailure(const std::string& id) {} | 46 virtual void OnExtensionInstallFailure(const std::string& id) {} |
47 | 47 |
48 // Called when the controller has finished all pending asynchronous | 48 // Called when the controller has finished all pending asynchronous |
49 // activities. | 49 // activities. |
50 virtual void OnPendingAsyncCompleted() {} | 50 virtual void OnPendingAsyncCompleted() {} |
51 | 51 |
| 52 // Called when the inline disposition's web contents have been loaded. |
| 53 virtual void OnInlineDispositionWebContentsLoaded( |
| 54 content::WebContents* web_contents) {} |
| 55 |
52 // Get the default size of the inline disposition tab container. | 56 // Get the default size of the inline disposition tab container. |
53 static gfx::Size GetDefaultInlineDispositionSize( | 57 static gfx::Size GetDefaultInlineDispositionSize( |
54 content::WebContents* web_contents); | 58 content::WebContents* web_contents); |
55 | 59 |
56 // Get the star image IDs to use for the nth star (out of 5), given a | 60 // Get the star image IDs to use for the nth star (out of 5), given a |
57 // |rating| in the range [0, 5]. | 61 // |rating| in the range [0, 5]. |
58 static int GetNthStarImageIdFromCWSRating(double rating, int index); | 62 static int GetNthStarImageIdFromCWSRating(double rating, int index); |
59 | 63 |
60 protected: | 64 protected: |
61 virtual ~WebIntentPicker() {} | 65 virtual ~WebIntentPicker() {} |
62 }; | 66 }; |
63 | 67 |
64 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_ | 68 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_ |
OLD | NEW |