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

Unified Diff: chrome/browser/extensions/extension_action_test_util.h

Issue 516633002: Stop showing page actions in the location bar with redesign enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest CQ for Master Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_action_test_util.h
diff --git a/chrome/browser/extensions/extension_action_test_util.h b/chrome/browser/extensions/extension_action_test_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..45afa000a15198081ca7b828c347740c63c277c8
--- /dev/null
+++ b/chrome/browser/extensions/extension_action_test_util.h
@@ -0,0 +1,30 @@
+// Copyright 2014 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.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_TEST_UTIL_H_
+#define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_TEST_UTIL_H_
+
+#include "base/basictypes.h"
+
+namespace content {
+class WebContents;
+}
+
+namespace extensions {
+namespace extension_action_test_util {
+
+// TODO(devlin): Should we also pull out methods to test browser actions?
+
+// Returns the number of page actions that are visible in the given
+// |web_contents|.
+size_t GetVisiblePageActionCount(content::WebContents* web_contents);
+
+// Returns the total number of page actions (visible or not) for the given
+// |web_contents|.
+size_t GetTotalPageActionCount(content::WebContents* web_contents);
+
+} // namespace extension_action_test_util
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_TEST_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698