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

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

Issue 40065: RenderWidgetHost now stores both the WebKeyboardEvent and the native (Closed)
Patch Set: Redesign 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
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual void ShowCreatedWindow(int route_id, 79 virtual void ShowCreatedWindow(int route_id,
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 NativeWebKeyboardEvent& event);
90 virtual void ForwardMessageToDevToolsClient(const IPC::Message& message); 90 virtual void ForwardMessageToDevToolsClient(const IPC::Message& message);
91 virtual void OnFindReply(int request_id, 91 virtual void OnFindReply(int request_id,
92 int number_of_matches, 92 int number_of_matches,
93 const gfx::Rect& selection_rect, 93 const gfx::Rect& selection_rect,
94 int active_match_ordinal, 94 int active_match_ordinal,
95 bool final_update); 95 bool final_update);
96 96
97 private: 97 private:
98 InterstitialPage* interstitial_page_; 98 InterstitialPage* interstitial_page_;
99 99
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 NOTREACHED() << "InterstitialPage does not support dragging yet."; 491 NOTREACHED() << "InterstitialPage does not support dragging yet.";
492 } 492 }
493 493
494 void InterstitialPage::InterstitialPageRVHViewDelegate::TakeFocus( 494 void InterstitialPage::InterstitialPageRVHViewDelegate::TakeFocus(
495 bool reverse) { 495 bool reverse) {
496 if (interstitial_page_->tab() && interstitial_page_->tab()->GetViewDelegate()) 496 if (interstitial_page_->tab() && interstitial_page_->tab()->GetViewDelegate())
497 interstitial_page_->tab()->GetViewDelegate()->TakeFocus(reverse); 497 interstitial_page_->tab()->GetViewDelegate()->TakeFocus(reverse);
498 } 498 }
499 499
500 void InterstitialPage::InterstitialPageRVHViewDelegate::HandleKeyboardEvent( 500 void InterstitialPage::InterstitialPageRVHViewDelegate::HandleKeyboardEvent(
501 const WebKeyboardEvent& event) { 501 const NativeWebKeyboardEvent& event) {
502 if (interstitial_page_->tab() && interstitial_page_->tab()->GetViewDelegate()) 502 if (interstitial_page_->tab() && interstitial_page_->tab()->GetViewDelegate())
503 interstitial_page_->tab()->GetViewDelegate()->HandleKeyboardEvent(event); 503 interstitial_page_->tab()->GetViewDelegate()->HandleKeyboardEvent(event);
504 } 504 }
505 505
506 void InterstitialPage::InterstitialPageRVHViewDelegate:: 506 void InterstitialPage::InterstitialPageRVHViewDelegate::
507 ForwardMessageToDevToolsClient(const IPC::Message& message) { 507 ForwardMessageToDevToolsClient(const IPC::Message& message) {
508 NOTREACHED() << "InterstitialPage does not support developer tools content."; 508 NOTREACHED() << "InterstitialPage does not support developer tools content.";
509 } 509 }
510 510
511 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply( 511 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply(
512 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,
513 int active_match_ordinal, bool final_update) { 513 int active_match_ordinal, bool final_update) {
514 } 514 }
515 515
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698