| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/thread.h" | 10 #include "base/thread.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 virtual void CreateNewWindow(int route_id); | 89 virtual void CreateNewWindow(int route_id); |
| 90 virtual void CreateNewWidget(int route_id, bool activatable); | 90 virtual void CreateNewWidget(int route_id, bool activatable); |
| 91 virtual void ShowCreatedWindow(int route_id, | 91 virtual void ShowCreatedWindow(int route_id, |
| 92 WindowOpenDisposition disposition, | 92 WindowOpenDisposition disposition, |
| 93 const gfx::Rect& initial_pos, | 93 const gfx::Rect& initial_pos, |
| 94 bool user_gesture); | 94 bool user_gesture); |
| 95 virtual void ShowCreatedWidget(int route_id, | 95 virtual void ShowCreatedWidget(int route_id, |
| 96 const gfx::Rect& initial_pos); | 96 const gfx::Rect& initial_pos); |
| 97 virtual void ShowContextMenu(const ContextMenuParams& params); | 97 virtual void ShowContextMenu(const ContextMenuParams& params); |
| 98 virtual void StartDragging(const WebDropData& drop_data, | 98 virtual void StartDragging(const WebDropData& drop_data, |
| 99 WebDragOperationsMask operations_allowed, | 99 WebDragOperationsMask operations_allowed); |
| 100 const SkBitmap& image, | |
| 101 const gfx::Point& image_offset); | |
| 102 virtual void UpdateDragCursor(WebDragOperation operation); | 100 virtual void UpdateDragCursor(WebDragOperation operation); |
| 103 virtual void GotFocus(); | 101 virtual void GotFocus(); |
| 104 virtual void TakeFocus(bool reverse); | 102 virtual void TakeFocus(bool reverse); |
| 105 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 103 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 106 bool* is_keyboard_shortcut); | 104 bool* is_keyboard_shortcut); |
| 107 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 105 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 108 virtual void HandleMouseEvent(); | 106 virtual void HandleMouseEvent(); |
| 109 virtual void HandleMouseLeave(); | 107 virtual void HandleMouseLeave(); |
| 110 virtual void OnFindReply(int request_id, | 108 virtual void OnFindReply(int request_id, |
| 111 int number_of_matches, | 109 int number_of_matches, |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 int route_id, const gfx::Rect& initial_pos) { | 571 int route_id, const gfx::Rect& initial_pos) { |
| 574 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet."; | 572 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet."; |
| 575 } | 573 } |
| 576 | 574 |
| 577 void InterstitialPage::InterstitialPageRVHViewDelegate::ShowContextMenu( | 575 void InterstitialPage::InterstitialPageRVHViewDelegate::ShowContextMenu( |
| 578 const ContextMenuParams& params) { | 576 const ContextMenuParams& params) { |
| 579 } | 577 } |
| 580 | 578 |
| 581 void InterstitialPage::InterstitialPageRVHViewDelegate::StartDragging( | 579 void InterstitialPage::InterstitialPageRVHViewDelegate::StartDragging( |
| 582 const WebDropData& drop_data, | 580 const WebDropData& drop_data, |
| 583 WebDragOperationsMask allowed_operations, | 581 WebDragOperationsMask allowed_operations) { |
| 584 const SkBitmap& image, | |
| 585 const gfx::Point& image_offset) { | |
| 586 NOTREACHED() << "InterstitialPage does not support dragging yet."; | 582 NOTREACHED() << "InterstitialPage does not support dragging yet."; |
| 587 } | 583 } |
| 588 | 584 |
| 589 void InterstitialPage::InterstitialPageRVHViewDelegate::UpdateDragCursor( | 585 void InterstitialPage::InterstitialPageRVHViewDelegate::UpdateDragCursor( |
| 590 WebDragOperation) { | 586 WebDragOperation) { |
| 591 NOTREACHED() << "InterstitialPage does not support dragging yet."; | 587 NOTREACHED() << "InterstitialPage does not support dragging yet."; |
| 592 } | 588 } |
| 593 | 589 |
| 594 void InterstitialPage::InterstitialPageRVHViewDelegate::GotFocus() { | 590 void InterstitialPage::InterstitialPageRVHViewDelegate::GotFocus() { |
| 595 } | 591 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 } | 625 } |
| 630 | 626 |
| 631 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply( | 627 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply( |
| 632 int request_id, int number_of_matches, const gfx::Rect& selection_rect, | 628 int request_id, int number_of_matches, const gfx::Rect& selection_rect, |
| 633 int active_match_ordinal, bool final_update) { | 629 int active_match_ordinal, bool final_update) { |
| 634 } | 630 } |
| 635 | 631 |
| 636 int InterstitialPage::GetBrowserWindowID() const { | 632 int InterstitialPage::GetBrowserWindowID() const { |
| 637 return tab_->GetBrowserWindowID(); | 633 return tab_->GetBrowserWindowID(); |
| 638 } | 634 } |
| OLD | NEW |