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

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

Issue 9959130: [Web Intents] Display throbber when loading inline disposition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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 <vector> 10 #include <vector>
(...skipping 24 matching lines...) Expand all
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698