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

Side by Side Diff: chrome/browser/extensions/extension_install_prompt.h

Issue 10696042: [gtk] add oauth2 scopes zippies in extension install dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: i18n Created 8 years, 5 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_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 PromptType type() const { return type_; } 69 PromptType type() const { return type_; }
70 void set_type(PromptType type) { type_ = type; } 70 void set_type(PromptType type) { type_ = type; }
71 71
72 // Getters for UI element labels. 72 // Getters for UI element labels.
73 string16 GetDialogTitle() const; 73 string16 GetDialogTitle() const;
74 string16 GetHeading() const; 74 string16 GetHeading() const;
75 string16 GetAcceptButtonLabel() const; 75 string16 GetAcceptButtonLabel() const;
76 bool HasAbortButtonLabel() const; 76 bool HasAbortButtonLabel() const;
77 string16 GetAbortButtonLabel() const; 77 string16 GetAbortButtonLabel() const;
78 string16 GetPermissionsHeading() const; 78 string16 GetPermissionsHeading() const;
79 string16 GetOAuthHeading() const;
79 80
80 // Getters for webstore metadata. Only populated when the type is 81 // Getters for webstore metadata. Only populated when the type is
81 // INLINE_INSTALL_PROMPT. 82 // INLINE_INSTALL_PROMPT.
82 83
83 // The star display logic replicates the one used by the webstore (from 84 // The star display logic replicates the one used by the webstore (from
84 // components.ratingutils.setFractionalYellowStars). Callers pass in an 85 // components.ratingutils.setFractionalYellowStars). Callers pass in an
85 // "appender", which will be repeatedly called back with the star images 86 // "appender", which will be repeatedly called back with the star images
86 // that they append to the star display area. 87 // that they append to the star display area.
87 typedef void(*StarAppender)(const gfx::ImageSkia*, void*); 88 typedef void(*StarAppender)(const gfx::ImageSkia*, void*);
88 void AppendRatingStars(StarAppender appender, void* data) const; 89 void AppendRatingStars(StarAppender appender, void* data) const;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 PromptType prompt_type_; 290 PromptType prompt_type_;
290 291
291 scoped_ptr<OAuth2MintTokenFlow> token_flow_; 292 scoped_ptr<OAuth2MintTokenFlow> token_flow_;
292 293
293 // Keeps track of extension images being loaded on the File thread for the 294 // Keeps track of extension images being loaded on the File thread for the
294 // purpose of showing the install UI. 295 // purpose of showing the install UI.
295 ImageLoadingTracker tracker_; 296 ImageLoadingTracker tracker_;
296 }; 297 };
297 298
298 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 299 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698