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

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

Issue 10535077: TabContentsWrapper -> TabContents, part 12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ Created 8 years, 6 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_UI_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "chrome/browser/extensions/image_loading_tracker.h" 14 #include "chrome/browser/extensions/image_loading_tracker.h"
15 #include "chrome/common/extensions/url_pattern.h" 15 #include "chrome/common/extensions/url_pattern.h"
16 #include "third_party/skia/include/core/SkBitmap.h" 16 #include "third_party/skia/include/core/SkBitmap.h"
17 #include "ui/gfx/image/image.h" 17 #include "ui/gfx/image/image.h"
18 #include "ui/gfx/image/image_skia.h" 18 #include "ui/gfx/image/image_skia.h"
19 #include "ui/gfx/native_widget_types.h" 19 #include "ui/gfx/native_widget_types.h"
20 20
21 class Browser; 21 class Browser;
22 class ExtensionPermissionSet; 22 class ExtensionPermissionSet;
23 class MessageLoop; 23 class MessageLoop;
24 class Profile; 24 class Profile;
25 class InfoBarDelegate; 25 class InfoBarDelegate;
26 class TabContents; 26 class TabContents;
27 typedef TabContents TabContentsWrapper;
28 27
29 namespace base { 28 namespace base {
30 class DictionaryValue; 29 class DictionaryValue;
31 } 30 }
32 31
33 namespace extensions { 32 namespace extensions {
34 class BundleInstaller; 33 class BundleInstaller;
35 class Extension; 34 class Extension;
36 class ExtensionWebstorePrivateApiTest; 35 class ExtensionWebstorePrivateApiTest;
37 } // namespace extensions 36 } // namespace extensions
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // 1) Set off a 'load icon' task. 252 // 1) Set off a 'load icon' task.
254 // 2) Handle the load icon response and show the UI (OnImageLoaded). 253 // 2) Handle the load icon response and show the UI (OnImageLoaded).
255 void LoadImageIfNeeded(); 254 void LoadImageIfNeeded();
256 255
257 // Shows the actual UI (the icon should already be loaded). 256 // Shows the actual UI (the icon should already be loaded).
258 void ShowConfirmation(); 257 void ShowConfirmation();
259 258
260 // Returns the delegate to control the browser's info bar. This is 259 // Returns the delegate to control the browser's info bar. This is
261 // within its own function due to its platform-specific nature. 260 // within its own function due to its platform-specific nature.
262 static InfoBarDelegate* GetNewThemeInstalledInfoBarDelegate( 261 static InfoBarDelegate* GetNewThemeInstalledInfoBarDelegate(
263 TabContentsWrapper* tab_contents, 262 TabContents* tab_contents,
264 const extensions::Extension* new_theme, 263 const extensions::Extension* new_theme,
265 const std::string& previous_theme_id, 264 const std::string& previous_theme_id,
266 bool previous_using_native_theme); 265 bool previous_using_native_theme);
267 266
268 Profile* profile_; 267 Profile* profile_;
269 MessageLoop* ui_loop_; 268 MessageLoop* ui_loop_;
270 269
271 // Used to undo theme installation. 270 // Used to undo theme installation.
272 std::string previous_theme_id_; 271 std::string previous_theme_id_;
273 bool previous_using_native_theme_; 272 bool previous_using_native_theme_;
(...skipping 25 matching lines...) Expand all
299 298
300 // Whether to show an installed bubble on app install, or use the default 299 // Whether to show an installed bubble on app install, or use the default
301 // action of opening a new tab page. 300 // action of opening a new tab page.
302 bool use_app_installed_bubble_; 301 bool use_app_installed_bubble_;
303 302
304 // Whether or not to show the default UI after completing the installation. 303 // Whether or not to show the default UI after completing the installation.
305 bool skip_post_install_ui_; 304 bool skip_post_install_ui_;
306 }; 305 };
307 306
308 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ 307 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698