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

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

Issue 150062: [chromium-reviews] Add getLanguage function to tabs extension (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_TABS_MODULE_H__ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/extensions/extension_function.h" 10 #include "chrome/browser/extensions/extension_function.h"
11 #include "chrome/common/notification_service.h"
12 #include "chrome/common/notification_registrar.h"
11 13
12 class Browser; 14 class Browser;
13 class DictionaryValue; 15 class DictionaryValue;
14 class TabContents; 16 class TabContents;
15 class TabStripModel; 17 class TabStripModel;
16 18
17 class ExtensionTabUtil { 19 class ExtensionTabUtil {
18 public: 20 public:
19 // Possible tab states. These states are used to calculate the "status" 21 // Possible tab states. These states are used to calculate the "status"
20 // property of the Tab object that is used in the extension tab API. 22 // property of the Tab object that is used in the extension tab API.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 }; 81 };
80 class UpdateTabFunction : public SyncExtensionFunction { 82 class UpdateTabFunction : public SyncExtensionFunction {
81 virtual bool RunImpl(); 83 virtual bool RunImpl();
82 }; 84 };
83 class MoveTabFunction : public SyncExtensionFunction { 85 class MoveTabFunction : public SyncExtensionFunction {
84 virtual bool RunImpl(); 86 virtual bool RunImpl();
85 }; 87 };
86 class RemoveTabFunction : public SyncExtensionFunction { 88 class RemoveTabFunction : public SyncExtensionFunction {
87 virtual bool RunImpl(); 89 virtual bool RunImpl();
88 }; 90 };
91 class GetTabLanguageFunction : public AsyncExtensionFunction,
92 public NotificationObserver {
93 virtual bool RunImpl();
94
95 private:
96 virtual void Observe(NotificationType type,
97 const NotificationSource& source,
98 const NotificationDetails& details);
99 NotificationRegistrar registrar_;
100 };
89 101
90 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ 102 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698