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

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

Issue 105873009: Use apple-touch-icons for streamlined hosted apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nit Created 6 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/extensions/tab_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_
6 #define CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set>
9 #include <string> 10 #include <string>
10 #include <vector> 11 #include <vector>
11 12
12 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
15 #include "base/observer_list.h" 16 #include "base/observer_list.h"
16 #include "chrome/browser/extensions/active_tab_permission_granter.h" 17 #include "chrome/browser/extensions/active_tab_permission_granter.h"
17 #include "chrome/browser/extensions/extension_function_dispatcher.h" 18 #include "chrome/browser/extensions/extension_function_dispatcher.h"
18 #include "chrome/common/web_application_info.h" 19 #include "chrome/common/web_application_info.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const ExecutingScriptsMap& executing_scripts_map, 81 const ExecutingScriptsMap& executing_scripts_map,
81 int32 on_page_id, 82 int32 on_page_id,
82 const GURL& on_url) = 0; 83 const GURL& on_url) = 0;
83 84
84 protected: 85 protected:
85 virtual ~ScriptExecutionObserver(); 86 virtual ~ScriptExecutionObserver();
86 87
87 TabHelper* tab_helper_; 88 TabHelper* tab_helper_;
88 }; 89 };
89 90
91 // This finds the closest not-smaller bitmap in |bitmaps| for each size in
92 // |sizes| and resizes it to that size. This returns a vector of bitmaps
93 // which contains only bitmaps of a size in |sizes| and at most one bitmap of
94 // each size.
95 static std::vector<SkBitmap> ConstrainBitmapsToSizes(
96 const std::vector<SkBitmap>& bitmaps,
97 const std::set<int>& sizes);
98
90 virtual ~TabHelper(); 99 virtual ~TabHelper();
91 100
92 void AddScriptExecutionObserver(ScriptExecutionObserver* observer) { 101 void AddScriptExecutionObserver(ScriptExecutionObserver* observer) {
93 script_execution_observers_.AddObserver(observer); 102 script_execution_observers_.AddObserver(observer);
94 } 103 }
95 104
96 void RemoveScriptExecutionObserver(ScriptExecutionObserver* observer) { 105 void RemoveScriptExecutionObserver(ScriptExecutionObserver* observer) {
97 script_execution_observers_.RemoveObserver(observer); 106 script_execution_observers_.RemoveObserver(observer);
98 } 107 }
99 108
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 293
285 // Creates WebstoreInlineInstaller instances for inline install triggers. 294 // Creates WebstoreInlineInstaller instances for inline install triggers.
286 scoped_ptr<WebstoreInlineInstallerFactory> webstore_inline_installer_factory_; 295 scoped_ptr<WebstoreInlineInstallerFactory> webstore_inline_installer_factory_;
287 296
288 DISALLOW_COPY_AND_ASSIGN(TabHelper); 297 DISALLOW_COPY_AND_ASSIGN(TabHelper);
289 }; 298 };
290 299
291 } // namespace extensions 300 } // namespace extensions
292 301
293 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ 302 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698