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

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

Issue 7835004: Moved the following IPCs out of chrome into content where they are handled by (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 virtual void NavigationStateChanged(const TabContents* source, 129 virtual void NavigationStateChanged(const TabContents* source,
130 unsigned changed_flags); 130 unsigned changed_flags);
131 virtual void AddNewContents(TabContents* source, 131 virtual void AddNewContents(TabContents* source,
132 TabContents* new_contents, 132 TabContents* new_contents,
133 WindowOpenDisposition disposition, 133 WindowOpenDisposition disposition,
134 const gfx::Rect& initial_pos, 134 const gfx::Rect& initial_pos,
135 bool user_gesture); 135 bool user_gesture);
136 virtual void CloseContents(TabContents* source); 136 virtual void CloseContents(TabContents* source);
137 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); 137 virtual void MoveContents(TabContents* source, const gfx::Rect& pos);
138 virtual bool IsPopup(const TabContents* source) const; 138 virtual bool IsPopup(const TabContents* source) const;
139 virtual void UpdateTargetURL(TabContents* source, const GURL& url); 139 virtual void UpdateTargetURL(TabContents* source, int32 page_id,
140 const GURL& url);
140 virtual void ContentsZoomChange(bool zoom_in); 141 virtual void ContentsZoomChange(bool zoom_in);
141 virtual gfx::NativeWindow GetFrameNativeWindow(); 142 virtual gfx::NativeWindow GetFrameNativeWindow();
142 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 143 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
143 bool* is_keyboard_shortcut); 144 bool* is_keyboard_shortcut);
144 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); 145 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
145 virtual bool TakeFocus(bool reverse); 146 virtual bool TakeFocus(bool reverse);
146 virtual bool CanDownload(TabContents* source, int request_id); 147 virtual bool CanDownload(TabContents* source, int request_id);
147 virtual bool OnGoToEntryOffset(int offset); 148 virtual bool OnGoToEntryOffset(int offset);
148 virtual void ShowPageInfo(Profile* profile, 149 virtual void ShowPageInfo(Profile* profile,
149 const GURL& url, 150 const GURL& url,
(...skipping 25 matching lines...) Expand all
175 const string16& action, 176 const string16& action,
176 const string16& type, 177 const string16& type,
177 const string16& data, 178 const string16& data,
178 int intent_id); 179 int intent_id);
179 virtual void FindReply(TabContents* tab, 180 virtual void FindReply(TabContents* tab,
180 int request_id, 181 int request_id,
181 int number_of_matches, 182 int number_of_matches,
182 const gfx::Rect& selection_rect, 183 const gfx::Rect& selection_rect,
183 int active_match_ordinal, 184 int active_match_ordinal,
184 bool final_update); 185 bool final_update);
186 virtual void CrashedPlugin(TabContents* tab,
187 const FilePath& plugin_path);
185 188
186 void RegisterRenderViewHost(RenderViewHost* render_view_host); 189 void RegisterRenderViewHost(RenderViewHost* render_view_host);
187 void UnregisterRenderViewHost(RenderViewHost* render_view_host); 190 void UnregisterRenderViewHost(RenderViewHost* render_view_host);
188 191
189 // Overridden from TabContentsObserver: 192 // Overridden from TabContentsObserver:
190 // IPC::Channel::Listener implementation. 193 // IPC::Channel::Listener implementation.
191 virtual bool OnMessageReceived(const IPC::Message& message); 194 virtual bool OnMessageReceived(const IPC::Message& message);
192 195
193 // Message handlers 196 // Message handlers
194 void OnForwardMessageToExternalHost(const std::string& message, 197 void OnForwardMessageToExternalHost(const std::string& message,
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 384
382 virtual void NavigationStateChanged(const TabContents* source, 385 virtual void NavigationStateChanged(const TabContents* source,
383 unsigned changed_flags) { 386 unsigned changed_flags) {
384 NOTREACHED(); 387 NOTREACHED();
385 } 388 }
386 389
387 virtual void CloseContents(TabContents* source) { 390 virtual void CloseContents(TabContents* source) {
388 NOTREACHED(); 391 NOTREACHED();
389 } 392 }
390 393
391 virtual void UpdateTargetURL(TabContents* source, const GURL& url) { 394 virtual void UpdateTargetURL(TabContents* source, int32 page_id,
395 const GURL& url) {
392 NOTREACHED(); 396 NOTREACHED();
393 } 397 }
394 398
395 void ForwardMessageToExternalHost(const std::string& message, 399 void ForwardMessageToExternalHost(const std::string& message,
396 const std::string& origin, 400 const std::string& origin,
397 const std::string& target) { 401 const std::string& target) {
398 NOTREACHED(); 402 NOTREACHED();
399 } 403 }
400 404
401 virtual bool TakeFocus(bool reverse) { 405 virtual bool TakeFocus(bool reverse) {
402 NOTREACHED(); 406 NOTREACHED();
403 return false; 407 return false;
404 } 408 }
405 409
406 virtual bool HandleContextMenu(const ContextMenuParams& params) { 410 virtual bool HandleContextMenu(const ContextMenuParams& params) {
407 NOTREACHED(); 411 NOTREACHED();
408 return false; 412 return false;
409 } 413 }
410 414
411 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, 415 virtual void BeforeUnloadFired(TabContents* tab, bool proceed,
412 bool* proceed_to_fire_unload) { 416 bool* proceed_to_fire_unload) {
413 NOTREACHED(); 417 NOTREACHED();
414 } 418 }
415 }; 419 };
416 420
417 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ 421 #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