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

Side by Side Diff: chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h

Issue 10411010: [Gtk, WebIntents] Support autosizing of inline content. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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
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_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_
6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/extensions/extension_function_dispatcher.h" 10 #include "chrome/browser/extensions/extension_function_dispatcher.h"
(...skipping 22 matching lines...) Expand all
33 // WebContentsDelegate implementation. 33 // WebContentsDelegate implementation.
34 virtual bool IsPopupOrPanel( 34 virtual bool IsPopupOrPanel(
35 const content::WebContents* source) const OVERRIDE; 35 const content::WebContents* source) const OVERRIDE;
36 virtual bool ShouldAddNavigationToHistory( 36 virtual bool ShouldAddNavigationToHistory(
37 const history::HistoryAddPageArgs& add_page_args, 37 const history::HistoryAddPageArgs& add_page_args,
38 content::NavigationType navigation_type) OVERRIDE; 38 content::NavigationType navigation_type) OVERRIDE;
39 virtual content::WebContents* OpenURLFromTab( 39 virtual content::WebContents* OpenURLFromTab(
40 content::WebContents* source, 40 content::WebContents* source,
41 const content::OpenURLParams& params) OVERRIDE; 41 const content::OpenURLParams& params) OVERRIDE;
42 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; 42 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE;
43 virtual void ResizeDueToAutoResize(content::WebContents* source,
44 const gfx::Size& pref_size) OVERRIDE;
43 45
44 // content::WebContentsObserver 46 // content::WebContentsObserver
45 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 47 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
48 virtual void RenderViewCreated(
49 content::RenderViewHost* render_view_host) OVERRIDE;
46 50
47 // ExtensionFunctionDispatcher::Delegate 51 // ExtensionFunctionDispatcher::Delegate
48 virtual ExtensionWindowController* GetExtensionWindowController() 52 virtual ExtensionWindowController* GetExtensionWindowController()
49 const OVERRIDE; 53 const OVERRIDE;
50 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; 54 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE;
51 55
52 // Message handlers. 56 // Message handlers.
53 void OnRequest(const ExtensionHostMsg_Request_Params& params); 57 void OnRequest(const ExtensionHostMsg_Request_Params& params);
54 private: 58 private:
55 // Picker to notify when loading state changes. Weak pointer. 59 // Picker to notify when loading state changes. Weak pointer.
56 WebIntentPicker* picker_; 60 WebIntentPicker* picker_;
57 61
58 // The WebContents container. Weak pointer. 62 // The WebContents container. Weak pointer.
59 content::WebContents* web_contents_; 63 content::WebContents* web_contents_;
60 64
61 // Dispatch handler for extension APIs. 65 // Dispatch handler for extension APIs.
62 ExtensionFunctionDispatcher extension_function_dispatcher_; 66 ExtensionFunctionDispatcher extension_function_dispatcher_;
63 }; 67 };
64 68
65 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_ 69 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698