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

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

Issue 10973: Test the feasibility of turning Chrome into a multi-process ActiveX control Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 12 years, 1 month 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_TAB_CONTENTS_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_DELEGATE_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_DELEGATE_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_DELEGATE_H_
7 7
8 // TODO(maruel): Remove once UINT and HWND are replaced / typedef. 8 // TODO(maruel): Remove once UINT and HWND are replaced / typedef.
9 #include <windows.h> 9 #include <windows.h>
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // it needs to do. 71 // it needs to do.
72 virtual void CloseContents(TabContents* source) = 0; 72 virtual void CloseContents(TabContents* source) = 0;
73 73
74 // Request the delegate to move this tab contents to the specified position 74 // Request the delegate to move this tab contents to the specified position
75 // in screen coordinates. 75 // in screen coordinates.
76 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) = 0; 76 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) = 0;
77 77
78 // Called to determine if the TabContents is contained in a popup window. 78 // Called to determine if the TabContents is contained in a popup window.
79 virtual bool IsPopup(TabContents* source) = 0; 79 virtual bool IsPopup(TabContents* source) = 0;
80 80
81 // Called to determine if the TabContents is contained in an embedded window.
82 virtual bool IsEmbedded(TabContents* source) = 0;
83
81 // Returns the tab which contains the specified tab content if it is 84 // Returns the tab which contains the specified tab content if it is
82 // constrained, NULL otherwise. 85 // constrained, NULL otherwise.
83 virtual TabContents* GetConstrainingContents(TabContents* source) { 86 virtual TabContents* GetConstrainingContents(TabContents* source) {
84 return NULL; 87 return NULL;
85 } 88 }
86 89
87 // Notification that some of our content has changed size as 90 // Notification that some of our content has changed size as
88 // part of an animation. 91 // part of an animation.
89 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) = 0; 92 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) = 0;
90 93
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 bool* proceed_to_fire_unload) { 141 bool* proceed_to_fire_unload) {
139 *proceed_to_fire_unload = true; 142 *proceed_to_fire_unload = true;
140 } 143 }
141 144
142 // Send IPC to external host. Default implementation is do nothing. 145 // Send IPC to external host. Default implementation is do nothing.
143 virtual void ForwardMessageToExternalHost(const std::string& receiver, 146 virtual void ForwardMessageToExternalHost(const std::string& receiver,
144 const std::string& message) {}; 147 const std::string& message) {};
145 }; 148 };
146 149
147 #endif // CHROME_BROWSER_TAB_CONTENTS_DELEGATE_H_ 150 #endif // CHROME_BROWSER_TAB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/navigation_controller_unittest.cc ('k') | chrome/browser/views/blocked_popup_container.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698