Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / extensions / extension_tab_util_android.cc
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/extensions/extension_tab_util.h"
6
7 #include "base/logging.h"
8 #include "chrome/browser/sessions/session_id.h"
9 #include "url/gurl.h"
10
11 using content::WebContents;
12
13 namespace extensions {
14
15 // static
16 int ExtensionTabUtil::GetWindowId(const Browser* browser) {
17   NOTIMPLEMENTED();
18   return -1;
19 }
20
21 // static
22 int ExtensionTabUtil::GetWindowIdOfTabStripModel(
23     const TabStripModel* tab_strip_model) {
24   NOTIMPLEMENTED();
25   return -1;
26 }
27
28 // static
29 int ExtensionTabUtil::GetTabId(WebContents* web_contents) {
30   return SessionID::IdForTab(web_contents);
31 }
32
33 // static
34 int ExtensionTabUtil::GetWindowIdOfTab(const WebContents* web_contents) {
35   NOTIMPLEMENTED();
36   return -1;
37 }
38
39 // static
40 base::DictionaryValue* ExtensionTabUtil::CreateTabValue(
41     WebContents* contents,
42     TabStripModel* tab_strip,
43     int tab_index,
44     const Extension* extension) {
45   NOTIMPLEMENTED();
46   return NULL;
47 }
48
49 // static
50 base::ListValue* ExtensionTabUtil::CreateTabList(const Browser* browser,
51                                                  const Extension* extension) {
52   NOTIMPLEMENTED();
53   return NULL;
54 }
55
56 // static
57 base::DictionaryValue* ExtensionTabUtil::CreateTabValue(
58     WebContents* contents,
59     TabStripModel* tab_strip,
60     int tab_index) {
61   NOTIMPLEMENTED();
62   return NULL;
63 }
64
65 // static
66 bool ExtensionTabUtil::GetTabStripModel(const WebContents* web_contents,
67                                         TabStripModel** tab_strip_model,
68                                         int* tab_index) {
69   NOTIMPLEMENTED();
70   return false;
71 }
72
73 // static
74 bool ExtensionTabUtil::GetDefaultTab(Browser* browser,
75                                      content::WebContents** contents,
76                                      int* tab_id) {
77   NOTIMPLEMENTED();
78   return false;
79 }
80
81 // static
82 bool ExtensionTabUtil::GetTabById(int tab_id,
83                                   Profile* profile,
84                                   bool include_incognito,
85                                   Browser** browser,
86                                   TabStripModel** tab_strip,
87                                   content::WebContents** contents,
88                                   int* tab_index) {
89   NOTIMPLEMENTED();
90   return false;
91 }
92
93 // static
94 GURL ExtensionTabUtil::ResolvePossiblyRelativeURL(const std::string& url_string,
95                                                   const Extension* extension) {
96   NOTIMPLEMENTED();
97   return GURL();
98 }
99
100 // static
101 bool ExtensionTabUtil::IsCrashURL(const GURL& url) {
102   NOTIMPLEMENTED();
103   return false;
104 }
105
106 // static
107 void ExtensionTabUtil::CreateTab(WebContents* web_contents,
108                                  const std::string& extension_id,
109                                  WindowOpenDisposition disposition,
110                                  const gfx::Rect& initial_pos,
111                                  bool user_gesture) {
112   NOTIMPLEMENTED();
113 }
114
115 // static
116 void ExtensionTabUtil::ForEachTab(
117     const base::Callback<void(WebContents*)>& callback) {
118   NOTIMPLEMENTED();
119 }
120
121 // static
122 WindowController* ExtensionTabUtil::GetWindowControllerOfTab(
123     const WebContents* web_contents) {
124   NOTIMPLEMENTED();
125   return NULL;
126 }
127
128 }  // namespace extensions