summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/extensions/extension_tab_util.cc1
-rw-r--r--chrome/browser/extensions/extension_tab_util.h3
-rw-r--r--chrome/browser/extensions/extension_tab_util_android.cc93
-rw-r--r--chrome/chrome_browser_extensions.gypi2
4 files changed, 95 insertions, 4 deletions
diff --git a/chrome/browser/extensions/extension_tab_util.cc b/chrome/browser/extensions/extension_tab_util.cc
index e8251a0..9473401 100644
--- a/chrome/browser/extensions/extension_tab_util.cc
+++ b/chrome/browser/extensions/extension_tab_util.cc
@@ -23,7 +23,6 @@
#include "googleurl/src/gurl.h"
namespace keys = extensions::tabs_constants;
-namespace errors = extension_manifest_errors;
using content::NavigationEntry;
using content::WebContents;
diff --git a/chrome/browser/extensions/extension_tab_util.h b/chrome/browser/extensions/extension_tab_util.h
index 85b3848..9d57c9a 100644
--- a/chrome/browser/extensions/extension_tab_util.h
+++ b/chrome/browser/extensions/extension_tab_util.h
@@ -33,9 +33,6 @@ class ExtensionTabUtil {
static int GetWindowId(const Browser* browser);
static int GetWindowIdOfTabStripModel(const TabStripModel* tab_strip_model);
static int GetTabId(const content::WebContents* web_contents);
- static bool GetTabIdFromArgument(const base::ListValue &args,
- int argument_index,
- int *tab_id, std::string* error_message);
static std::string GetTabStatusText(bool is_loading);
static int GetWindowIdOfTab(const content::WebContents* web_contents);
static base::ListValue* CreateTabList(const Browser* browser);
diff --git a/chrome/browser/extensions/extension_tab_util_android.cc b/chrome/browser/extensions/extension_tab_util_android.cc
new file mode 100644
index 0000000..79c461b
--- /dev/null
+++ b/chrome/browser/extensions/extension_tab_util_android.cc
@@ -0,0 +1,93 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/extensions/extension_tab_util.h"
+
+#include "base/logging.h"
+#include "googleurl/src/gurl.h"
+
+using base::DictionaryValue;
+using base::ListValue;
+using content::WebContents;
+
+int ExtensionTabUtil::GetWindowId(const Browser* browser) {
+ NOTIMPLEMENTED();
+ return -1;
+}
+
+int ExtensionTabUtil::GetWindowIdOfTabStripModel(
+ const TabStripModel* tab_strip_model) {
+ NOTIMPLEMENTED();
+ return -1;
+}
+
+int ExtensionTabUtil::GetTabId(const WebContents* web_contents) {
+ NOTIMPLEMENTED();
+ return -1;
+}
+
+int ExtensionTabUtil::GetWindowIdOfTab(const WebContents* web_contents) {
+ NOTIMPLEMENTED();
+ return -1;
+}
+
+DictionaryValue* ExtensionTabUtil::CreateTabValue(const WebContents* contents) {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+ListValue* ExtensionTabUtil::CreateTabList(const Browser* browser) {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+DictionaryValue* ExtensionTabUtil::CreateTabValue(const WebContents* contents,
+ TabStripModel* tab_strip,
+ int tab_index) {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+DictionaryValue* ExtensionTabUtil::CreateTabValueActive(
+ const WebContents* contents,
+ bool active) {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+bool ExtensionTabUtil::GetTabStripModel(const WebContents* web_contents,
+ TabStripModel** tab_strip_model,
+ int* tab_index) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool ExtensionTabUtil::GetDefaultTab(Browser* browser,
+ TabContents** contents,
+ int* tab_id) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool ExtensionTabUtil::GetTabById(int tab_id,
+ Profile* profile,
+ bool include_incognito,
+ Browser** browser,
+ TabStripModel** tab_strip,
+ TabContents** contents,
+ int* tab_index) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+GURL ExtensionTabUtil::ResolvePossiblyRelativeURL(const std::string& url_string,
+ const extensions::Extension* extension) {
+ NOTIMPLEMENTED();
+ return GURL();
+}
+
+bool ExtensionTabUtil::IsCrashURL(const GURL& url) {
+ NOTIMPLEMENTED();
+ return false;
+}
diff --git a/chrome/chrome_browser_extensions.gypi b/chrome/chrome_browser_extensions.gypi
index 06e2d9f..6565aab 100644
--- a/chrome/chrome_browser_extensions.gypi
+++ b/chrome/chrome_browser_extensions.gypi
@@ -686,12 +686,14 @@
'sources': [
'browser/extensions/extension_install_ui_android.cc',
'browser/extensions/extension_install_ui_android.h',
+ 'browser/extensions/extension_tab_util_android.cc',
],
'sources!': [
'browser/extensions/app_notify_channel_ui.cc',
'browser/extensions/app_notify_channel_ui.h',
'browser/extensions/extension_install_ui_default.cc',
'browser/extensions/extension_install_ui_default.h',
+ 'browser/extensions/extension_tab_util.cc',
'browser/extensions/platform_app_launcher.cc',
'browser/extensions/platform_app_launcher.h',
'browser/extensions/api/usb/usb_api.cc',