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

Unified Diff: chrome/browser/ui/browser_show_actions.h

Issue 9479008: Re-factor location bar/toolbar code to get rid of the browser dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 8 years, 10 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/ui/browser_show_actions.h
diff --git a/chrome/browser/ui/browser_show_actions.h b/chrome/browser/ui/browser_show_actions.h
new file mode 100644
index 0000000000000000000000000000000000000000..103cc2786b31028677b9160fe0ab23b88f3bdb7e
--- /dev/null
+++ b/chrome/browser/ui/browser_show_actions.h
@@ -0,0 +1,50 @@
+// 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.
+
+#ifndef CHROME_BROWSER_UI_BROWSER_SHOW_ACTIONS_H_
+#define CHROME_BROWSER_UI_BROWSER_SHOW_ACTIONS_H_
+#pragma once
+
+#include "chrome/common/content_settings_types.h"
+
+class Browser;
+class GURL;
+class TabContentsWrapper;
+
+namespace content {
+class WebContents;
+struct SSLStatus;
+}
+
+namespace views {
+class BubbleDelegateView;
+class Widget;
+}
+
+// Interface for showing content related pages/dialogs.
+class BrowserShowContentRelated {
+ public:
+ // Shows the cookies collected in the tab contents wrapper.
+ virtual void ShowCollectedCookiesDialog(TabContentsWrapper* contents) = 0;
+
+ // Shows the Content Settings page for a given content type.
+ virtual void ShowContentSettingsPage(ContentSettingsType type) = 0;
+};
+
+// Interface for showing page info.
+class BrowserShowPageInfo {
+ public:
+ virtual void ShowPageInfo(content::WebContents* web_contents,
+ const GURL& url,
+ const content::SSLStatus& ssl,
+ bool show_history) = 0;
+};
+
+// Meta interface which consists of the different page and dialogs showing
+// action which are supported by Browser.
+class BrowserShowActions : public BrowserShowContentRelated,
+ public BrowserShowPageInfo {
+};
+
+#endif // CHROME_BROWSER_UI_BROWSER_SHOW_ACTIONS_H_

Powered by Google App Engine
This is Rietveld 408576698