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

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

Issue 10697017: Tabs Extension: Implementation of tabs.duplicate api. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 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
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_EXTENSION_TAB_UTIL_H__ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H__
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H__ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H__
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 27 matching lines...) Expand all
38 int *tab_id, std::string* error_message); 38 int *tab_id, std::string* error_message);
39 static std::string GetTabStatusText(bool is_loading); 39 static std::string GetTabStatusText(bool is_loading);
40 static int GetWindowIdOfTab(const content::WebContents* web_contents); 40 static int GetWindowIdOfTab(const content::WebContents* web_contents);
41 static base::ListValue* CreateTabList(const Browser* browser); 41 static base::ListValue* CreateTabList(const Browser* browser);
42 static base::DictionaryValue* CreateTabValue( 42 static base::DictionaryValue* CreateTabValue(
43 const content::WebContents* web_contents); 43 const content::WebContents* web_contents);
44 static base::DictionaryValue* CreateTabValue( 44 static base::DictionaryValue* CreateTabValue(
45 const content::WebContents* web_contents, 45 const content::WebContents* web_contents,
46 TabStripModel* tab_strip, 46 TabStripModel* tab_strip,
47 int tab_index); 47 int tab_index);
48 static base::DictionaryValue* CreateTabValue(
49 const content::WebContents* web_contents,
50 TabStripModel* tab_strip,
51 int tab_index, bool has_permission);
Aaron Boodman 2012/08/07 01:03:25 I would prefer an enum rather than the boolean par
SanjoyPal 2012/08/14 11:14:13 Done.
48 // Create a tab value, overriding its kSelectedKey to the provided boolean. 52 // Create a tab value, overriding its kSelectedKey to the provided boolean.
49 static base::DictionaryValue* CreateTabValueActive( 53 static base::DictionaryValue* CreateTabValueActive(
50 const content::WebContents* web_contents, 54 const content::WebContents* web_contents,
51 bool active); 55 bool active);
52 56
53 // Gets the |tab_strip_model| and |tab_index| for the given |web_contents|. 57 // Gets the |tab_strip_model| and |tab_index| for the given |web_contents|.
54 static bool GetTabStripModel(const content::WebContents* web_contents, 58 static bool GetTabStripModel(const content::WebContents* web_contents,
55 TabStripModel** tab_strip_model, 59 TabStripModel** tab_strip_model,
56 int* tab_index); 60 int* tab_index);
57 static bool GetDefaultTab(Browser* browser, 61 static bool GetDefaultTab(Browser* browser,
(...skipping 16 matching lines...) Expand all
74 // extension base, we decided it wasn't worth breaking existing extensions to 78 // extension base, we decided it wasn't worth breaking existing extensions to
75 // fix. 79 // fix.
76 static GURL ResolvePossiblyRelativeURL(const std::string& url_string, 80 static GURL ResolvePossiblyRelativeURL(const std::string& url_string,
77 const extensions::Extension* extension); 81 const extensions::Extension* extension);
78 82
79 // Returns true if |url| is used for testing crashes. 83 // Returns true if |url| is used for testing crashes.
80 static bool IsCrashURL(const GURL& url); 84 static bool IsCrashURL(const GURL& url);
81 }; 85 };
82 86
83 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H__ 87 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698