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

Side by Side Diff: chrome/browser/extensions/api/tabs/tabs.h

Issue 10443105: Take 2 at implementing activeTab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: empty -> is_empty 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_API_TABS_TABS_H__ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_H__
6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_H__ 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_H__
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 virtual bool RunImpl() OVERRIDE; 114 virtual bool RunImpl() OVERRIDE;
115 DECLARE_EXTENSION_FUNCTION_NAME("tabs.highlight") 115 DECLARE_EXTENSION_FUNCTION_NAME("tabs.highlight")
116 }; 116 };
117 class UpdateTabFunction : public AsyncExtensionFunction { 117 class UpdateTabFunction : public AsyncExtensionFunction {
118 public: 118 public:
119 UpdateTabFunction(); 119 UpdateTabFunction();
120 120
121 protected: 121 protected:
122 virtual ~UpdateTabFunction() {} 122 virtual ~UpdateTabFunction() {}
123 virtual bool UpdateURLIfPresent(base::DictionaryValue* update_props, 123 virtual bool UpdateURLIfPresent(base::DictionaryValue* update_props,
124 int tab_id,
124 bool* is_async); 125 bool* is_async);
125 virtual void PopulateResult(); 126 virtual void PopulateResult();
126 127
127 TabContents* tab_contents_; 128 TabContents* tab_contents_;
128 129
129 private: 130 private:
130 virtual bool RunImpl() OVERRIDE; 131 virtual bool RunImpl() OVERRIDE;
131 void OnExecuteCodeFinished(bool success, 132 void OnExecuteCodeFinished(bool success,
132 int32 page_id, 133 int32 page_id,
133 const std::string& error); 134 const std::string& error);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // The format (JPEG vs PNG) of the resulting image. Set in RunImpl(). 192 // The format (JPEG vs PNG) of the resulting image. Set in RunImpl().
192 ImageFormat image_format_; 193 ImageFormat image_format_;
193 194
194 // Quality setting to use when encoding jpegs. Set in RunImpl(). 195 // Quality setting to use when encoding jpegs. Set in RunImpl().
195 int image_quality_; 196 int image_quality_;
196 197
197 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab") 198 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab")
198 }; 199 };
199 200
200 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_H__ 201 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_H__
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tabs/execute_code_in_tab_function.cc ('k') | chrome/browser/extensions/api/tabs/tabs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698