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

Side by Side Diff: chrome/browser/external_tab_container_win.h

Issue 8666013: Add a public content/ interface for intents. Use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For try servers. Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/external_tab_container_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_EXTERNAL_TAB_CONTAINER_WIN_H_ 5 #ifndef CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_
6 #define CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ 6 #define CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 18 matching lines...) Expand all
29 #include "ui/views/widget/native_widget_win.h" 29 #include "ui/views/widget/native_widget_win.h"
30 30
31 class AutomationProvider; 31 class AutomationProvider;
32 class Browser; 32 class Browser;
33 class Profile; 33 class Profile;
34 class TabContentsContainer; 34 class TabContentsContainer;
35 class TabContentsWrapper; 35 class TabContentsWrapper;
36 class RenderViewContextMenuViews; 36 class RenderViewContextMenuViews;
37 struct NavigationInfo; 37 struct NavigationInfo;
38 38
39 namespace content {
40 class IntentsHost;
41 }
42
39 namespace ui { 43 namespace ui {
40 class ViewProp; 44 class ViewProp;
41 } 45 }
42 46
43 // This class serves as the container window for an external tab. 47 // This class serves as the container window for an external tab.
44 // An external tab is a Chrome tab that is meant to displayed in an 48 // An external tab is a Chrome tab that is meant to displayed in an
45 // external process. This class provides the FocusManger needed by the 49 // external process. This class provides the FocusManger needed by the
46 // TabContents as well as an implementation of TabContentsDelegate. 50 // TabContents as well as an implementation of TabContentsDelegate.
47 class ExternalTabContainer : public TabContentsDelegate, 51 class ExternalTabContainer : public TabContentsDelegate,
48 public TabContentsObserver, 52 public TabContentsObserver,
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 const std::string& protocol, 172 const std::string& protocol,
169 const GURL& url, 173 const GURL& url,
170 const string16& title) OVERRIDE; 174 const string16& title) OVERRIDE;
171 virtual void RegisterIntentHandler(TabContents* tab, 175 virtual void RegisterIntentHandler(TabContents* tab,
172 const string16& action, 176 const string16& action,
173 const string16& type, 177 const string16& type,
174 const string16& href, 178 const string16& href,
175 const string16& title, 179 const string16& title,
176 const string16& disposition) OVERRIDE; 180 const string16& disposition) OVERRIDE;
177 virtual void WebIntentDispatch(TabContents* tab, 181 virtual void WebIntentDispatch(TabContents* tab,
178 int routing_id, 182 content::IntentsHost* intents_host) OVERRIDE;
179 const webkit_glue::WebIntentData& intent,
180 int intent_id) OVERRIDE;
181 virtual void FindReply(TabContents* tab, 183 virtual void FindReply(TabContents* tab,
182 int request_id, 184 int request_id,
183 int number_of_matches, 185 int number_of_matches,
184 const gfx::Rect& selection_rect, 186 const gfx::Rect& selection_rect,
185 int active_match_ordinal, 187 int active_match_ordinal,
186 bool final_update) OVERRIDE; 188 bool final_update) OVERRIDE;
187 virtual void CrashedPlugin(TabContents* tab, 189 virtual void CrashedPlugin(TabContents* tab,
188 const FilePath& plugin_path) OVERRIDE; 190 const FilePath& plugin_path) OVERRIDE;
189 191
190 void RegisterRenderViewHost(RenderViewHost* render_view_host); 192 void RegisterRenderViewHost(RenderViewHost* render_view_host);
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 return false; 416 return false;
415 } 417 }
416 418
417 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, 419 virtual void BeforeUnloadFired(TabContents* tab, bool proceed,
418 bool* proceed_to_fire_unload) { 420 bool* proceed_to_fire_unload) {
419 NOTREACHED(); 421 NOTREACHED();
420 } 422 }
421 }; 423 };
422 424
423 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ 425 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/external_tab_container_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698