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

Unified Diff: chrome/browser/ui/cocoa/extensions/extension_message_bubble_bridge.h

Issue 1858773006: [Extensions UI] Use the ExtensionMessageBubbleBridge for Views platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/cocoa/extensions/extension_message_bubble_bridge.h
diff --git a/chrome/browser/ui/cocoa/extensions/extension_message_bubble_bridge.h b/chrome/browser/ui/cocoa/extensions/extension_message_bubble_bridge.h
deleted file mode 100644
index 638aa6676212f8a391c4216ad289fb0fafb6a3ff..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/extensions/extension_message_bubble_bridge.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2015 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_COCOA_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_BRIDGE_H_
-#define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_BRIDGE_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "chrome/browser/ui/toolbar/toolbar_actions_bar_bubble_delegate.h"
-
-@class ToolbarActionsBarBubbleMac;
-
-namespace extensions {
-class ExtensionMessageBubbleController;
-}
-
-// A bridge between an ExtensionMessageBubbleController and a
-// ToolbarActionsBarBubble.
-class ExtensionMessageBubbleBridge : public ToolbarActionsBarBubbleDelegate {
- public:
- ExtensionMessageBubbleBridge(
- std::unique_ptr<extensions::ExtensionMessageBubbleController> controller,
- bool anchored_to_extension);
- ~ExtensionMessageBubbleBridge() override;
-
- private:
- // ToolbarActionsBarBubbleDelegate:
- base::string16 GetHeadingText() override;
- base::string16 GetBodyText() override;
- base::string16 GetItemListText() override;
- base::string16 GetActionButtonText() override;
- base::string16 GetDismissButtonText() override;
- base::string16 GetLearnMoreButtonText() override;
- std::string GetAnchorActionId() override;
- void OnBubbleShown() override;
- void OnBubbleClosed(CloseAction action) override;
-
- std::unique_ptr<extensions::ExtensionMessageBubbleController> controller_;
-
- // True if the bubble is anchored to an extension action.
- bool anchored_to_extension_;
-
- DISALLOW_COPY_AND_ASSIGN(ExtensionMessageBubbleBridge);
-};
-
-#endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_BRIDGE_H_

Powered by Google App Engine
This is Rietveld 408576698