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

Unified Diff: chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h

Issue 12225076: Delete most web intents code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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/intents/web_intent_inline_disposition_delegate.h
diff --git a/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h b/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h
deleted file mode 100644
index fdc726504f6f389e9064b57d67db1ede412a7dcf..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// 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_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_
-#define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_
-
-#include "base/compiler_specific.h"
-#include "chrome/browser/extensions/extension_function_dispatcher.h"
-#include "content/public/browser/web_contents_delegate.h"
-#include "content/public/browser/web_contents_observer.h"
-
-class Browser;
-class WebIntentPicker;
-
-// This class is the policy delegate for the rendered page in the intents
-// inline disposition bubble. It also acts as a router for extension messages,
-// so we can invoke extension APIs in inline disposition contexts.
-class WebIntentInlineDispositionDelegate
- : public content::WebContentsDelegate,
- public content::WebContentsObserver,
- public ExtensionFunctionDispatcher::Delegate {
- public:
- // |picker| is notified when the web contents loading state changes. Must not
- // be NULL.
- // |contents| is the WebContents for the inline disposition.
- // |browser| is the browser inline disposition was invoked from.
- WebIntentInlineDispositionDelegate(WebIntentPicker* picker,
- content::WebContents* contents,
- Browser* browser);
- virtual ~WebIntentInlineDispositionDelegate();
-
- // WebContentsDelegate implementation.
- virtual bool IsPopupOrPanel(
- const content::WebContents* source) const OVERRIDE;
- virtual content::WebContents* OpenURLFromTab(
- content::WebContents* source,
- const content::OpenURLParams& params) OVERRIDE;
- virtual void AddNewContents(content::WebContents* source,
- content::WebContents* new_contents,
- WindowOpenDisposition disposition,
- const gfx::Rect& initial_pos,
- bool user_gesture,
- bool* was_blocked) OVERRIDE;
- virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE;
- virtual void ResizeDueToAutoResize(content::WebContents* source,
- const gfx::Size& pref_size) OVERRIDE;
- virtual void HandleKeyboardEvent(
- content::WebContents* source,
- const content::NativeWebKeyboardEvent& event) OVERRIDE;
-
- // content::WebContentsObserver
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
- virtual void RenderViewCreated(
- content::RenderViewHost* render_view_host) OVERRIDE;
- virtual void DocumentAvailableInMainFrame() OVERRIDE;
-
- // ExtensionFunctionDispatcher::Delegate
- virtual extensions::WindowController* GetExtensionWindowController()
- const OVERRIDE;
- virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE;
-
- // Message handlers.
- void OnRequest(const ExtensionHostMsg_Request_Params& params);
-
- // Updates the inline render view with a new max and min size.
- void SetRenderViewSizeLimits();
-
- private:
- // Picker to notify when loading state changes. Weak pointer.
- WebIntentPicker* picker_;
-
- // The WebContents container. Weak pointer.
- content::WebContents* web_contents_;
-
- Browser* browser_; // Weak pointer.
-
- // The RVH responsible for the RenderView. Weak pointer.
- content::RenderViewHost* render_view_host_;
-
- // Dispatch handler for extension APIs.
- ExtensionFunctionDispatcher extension_function_dispatcher_;
-};
-
-#endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698