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