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

Side by Side Diff: chrome/browser/tab_contents/interstitial_page.cc

Issue 21540: Add developer tools message forwarding to browser (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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
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 #include "chrome/browser/tab_contents/interstitial_page.h" 5 #include "chrome/browser/tab_contents/interstitial_page.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/thread.h" 8 #include "base/thread.h"
9 #include "chrome/browser/browser.h" 9 #include "chrome/browser/browser.h"
10 #include "chrome/browser/browser_list.h" 10 #include "chrome/browser/browser_list.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 WindowOpenDisposition disposition, 80 WindowOpenDisposition disposition,
81 const gfx::Rect& initial_pos, 81 const gfx::Rect& initial_pos,
82 bool user_gesture); 82 bool user_gesture);
83 virtual void ShowCreatedWidget(int route_id, 83 virtual void ShowCreatedWidget(int route_id,
84 const gfx::Rect& initial_pos); 84 const gfx::Rect& initial_pos);
85 virtual void ShowContextMenu(const ContextMenuParams& params); 85 virtual void ShowContextMenu(const ContextMenuParams& params);
86 virtual void StartDragging(const WebDropData& drop_data); 86 virtual void StartDragging(const WebDropData& drop_data);
87 virtual void UpdateDragCursor(bool is_drop_target); 87 virtual void UpdateDragCursor(bool is_drop_target);
88 virtual void TakeFocus(bool reverse); 88 virtual void TakeFocus(bool reverse);
89 virtual void HandleKeyboardEvent(const WebKeyboardEvent& event); 89 virtual void HandleKeyboardEvent(const WebKeyboardEvent& event);
90 virtual void ForwardMessageToDevToolsClient(const IPC::Message& message);
90 virtual void OnFindReply(int request_id, 91 virtual void OnFindReply(int request_id,
91 int number_of_matches, 92 int number_of_matches,
92 const gfx::Rect& selection_rect, 93 const gfx::Rect& selection_rect,
93 int active_match_ordinal, 94 int active_match_ordinal,
94 bool final_update); 95 bool final_update);
95 96
96 private: 97 private:
97 InterstitialPage* interstitial_page_; 98 InterstitialPage* interstitial_page_;
98 99
99 DISALLOW_COPY_AND_ASSIGN(InterstitialPageRVHViewDelegate); 100 DISALLOW_COPY_AND_ASSIGN(InterstitialPageRVHViewDelegate);
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 if (interstitial_page_->tab() && interstitial_page_->tab()->GetViewDelegate()) 496 if (interstitial_page_->tab() && interstitial_page_->tab()->GetViewDelegate())
496 interstitial_page_->tab()->GetViewDelegate()->TakeFocus(reverse); 497 interstitial_page_->tab()->GetViewDelegate()->TakeFocus(reverse);
497 } 498 }
498 499
499 void InterstitialPage::InterstitialPageRVHViewDelegate::HandleKeyboardEvent( 500 void InterstitialPage::InterstitialPageRVHViewDelegate::HandleKeyboardEvent(
500 const WebKeyboardEvent& event) { 501 const WebKeyboardEvent& event) {
501 if (interstitial_page_->tab() && interstitial_page_->tab()->GetViewDelegate()) 502 if (interstitial_page_->tab() && interstitial_page_->tab()->GetViewDelegate())
502 interstitial_page_->tab()->GetViewDelegate()->HandleKeyboardEvent(event); 503 interstitial_page_->tab()->GetViewDelegate()->HandleKeyboardEvent(event);
503 } 504 }
504 505
506 void InterstitialPage::InterstitialPageRVHViewDelegate::
507 ForwardMessageToDevToolsClient(const IPC::Message& message) {
508 NOTREACHED() << "InterstitialPage does not support developer tools content.";
509 }
510
505 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply( 511 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply(
506 int request_id, int number_of_matches, const gfx::Rect& selection_rect, 512 int request_id, int number_of_matches, const gfx::Rect& selection_rect,
507 int active_match_ordinal, bool final_update) { 513 int active_match_ordinal, bool final_update) {
508 } 514 }
509 515
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host_delegate.h ('k') | chrome/browser/tab_contents/web_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698