| OLD | NEW |
| 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 #include "chrome/browser/extensions/extension_tab_util.h" | 5 #include "chrome/browser/extensions/extension_tab_util.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
| 9 | 9 |
| 10 using base::DictionaryValue; | 10 using base::DictionaryValue; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 int ExtensionTabUtil::GetTabId(const WebContents* web_contents) { | 25 int ExtensionTabUtil::GetTabId(const WebContents* web_contents) { |
| 26 NOTIMPLEMENTED(); | 26 NOTIMPLEMENTED(); |
| 27 return -1; | 27 return -1; |
| 28 } | 28 } |
| 29 | 29 |
| 30 int ExtensionTabUtil::GetWindowIdOfTab(const WebContents* web_contents) { | 30 int ExtensionTabUtil::GetWindowIdOfTab(const WebContents* web_contents) { |
| 31 NOTIMPLEMENTED(); | 31 NOTIMPLEMENTED(); |
| 32 return -1; | 32 return -1; |
| 33 } | 33 } |
| 34 | 34 |
| 35 DictionaryValue* ExtensionTabUtil::CreateTabValue(const WebContents* contents) { | 35 DictionaryValue* ExtensionTabUtil::CreateTabValue( |
| 36 const WebContents* contents, |
| 37 const extensions::Extension* extension) { |
| 36 NOTIMPLEMENTED(); | 38 NOTIMPLEMENTED(); |
| 37 return NULL; | 39 return NULL; |
| 38 } | 40 } |
| 39 | 41 |
| 40 ListValue* ExtensionTabUtil::CreateTabList(const Browser* browser) { | 42 ListValue* ExtensionTabUtil::CreateTabList( |
| 43 const Browser* browser, |
| 44 const extensions::Extension* extension) { |
| 41 NOTIMPLEMENTED(); | 45 NOTIMPLEMENTED(); |
| 42 return NULL; | 46 return NULL; |
| 43 } | 47 } |
| 44 | 48 |
| 45 DictionaryValue* ExtensionTabUtil::CreateTabValue(const WebContents* contents, | 49 DictionaryValue* ExtensionTabUtil::CreateTabValue( |
| 46 TabStripModel* tab_strip, | 50 const WebContents* contents, |
| 47 int tab_index) { | 51 TabStripModel* tab_strip, |
| 52 int tab_index, |
| 53 const extensions::Extension* extension) { |
| 48 NOTIMPLEMENTED(); | 54 NOTIMPLEMENTED(); |
| 49 return NULL; | 55 return NULL; |
| 50 } | 56 } |
| 51 | 57 |
| 52 DictionaryValue* ExtensionTabUtil::CreateTabValueActive( | 58 DictionaryValue* ExtensionTabUtil::CreateTabValueActive( |
| 53 const WebContents* contents, | 59 const WebContents* contents, |
| 54 bool active) { | 60 bool active, |
| 61 const extensions::Extension* extension) { |
| 55 NOTIMPLEMENTED(); | 62 NOTIMPLEMENTED(); |
| 56 return NULL; | 63 return NULL; |
| 57 } | 64 } |
| 58 | 65 |
| 59 bool ExtensionTabUtil::GetTabStripModel(const WebContents* web_contents, | 66 bool ExtensionTabUtil::GetTabStripModel(const WebContents* web_contents, |
| 60 TabStripModel** tab_strip_model, | 67 TabStripModel** tab_strip_model, |
| 61 int* tab_index) { | 68 int* tab_index) { |
| 62 NOTIMPLEMENTED(); | 69 NOTIMPLEMENTED(); |
| 63 return false; | 70 return false; |
| 64 } | 71 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 93 } | 100 } |
| 94 | 101 |
| 95 void ExtensionTabUtil::CreateTab(WebContents* web_contents, | 102 void ExtensionTabUtil::CreateTab(WebContents* web_contents, |
| 96 const std::string& extension_id, | 103 const std::string& extension_id, |
| 97 WindowOpenDisposition disposition, | 104 WindowOpenDisposition disposition, |
| 98 const gfx::Rect& initial_pos, | 105 const gfx::Rect& initial_pos, |
| 99 bool user_gesture) { | 106 bool user_gesture) { |
| 100 NOTIMPLEMENTED(); | 107 NOTIMPLEMENTED(); |
| 101 } | 108 } |
| 102 | 109 |
| 110 void MaybeStripEventArgsOfSensitiveData( |
| 111 const std::string& event_name, |
| 112 const extensions::Extension* extension, |
| 113 base::ListValue* event_args) { |
| 114 NOTIMPLEMENTED(); |
| 115 } |
| 116 |
| 103 // static | 117 // static |
| 104 void ExtensionTabUtil::ForEachTab( | 118 void ExtensionTabUtil::ForEachTab( |
| 105 const base::Callback<void(WebContents*)>& callback) { | 119 const base::Callback<void(WebContents*)>& callback) { |
| 106 NOTIMPLEMENTED(); | 120 NOTIMPLEMENTED(); |
| 107 } | 121 } |
| 108 | 122 |
| 109 // static | 123 // static |
| 110 extensions::WindowController* ExtensionTabUtil::GetWindowControllerOfTab( | 124 extensions::WindowController* ExtensionTabUtil::GetWindowControllerOfTab( |
| 111 const WebContents* web_contents) { | 125 const WebContents* web_contents) { |
| 112 NOTIMPLEMENTED(); | 126 NOTIMPLEMENTED(); |
| 113 return NULL; | 127 return NULL; |
| 114 } | 128 } |
| OLD | NEW |