| 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); |
| 100 virtual void UpdateDragCursor(WebDragOperation operation); | 102 virtual void UpdateDragCursor(WebDragOperation operation); |
| 101 virtual void GotFocus(); | 103 virtual void GotFocus(); |
| 102 virtual void TakeFocus(bool reverse); | 104 virtual void TakeFocus(bool reverse); |
| 103 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 105 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 104 bool* is_keyboard_shortcut); | 106 bool* is_keyboard_shortcut); |
| 105 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 107 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 106 virtual void HandleMouseEvent(); | 108 virtual void HandleMouseEvent(); |
| 107 virtual void HandleMouseLeave(); | 109 virtual void HandleMouseLeave(); |
| 108 virtual void OnFindReply(int request_id, | 110 virtual void OnFindReply(int request_id, |
| 109 int number_of_matches, | 111 int number_of_matches, |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 int route_id, const gfx::Rect& initial_pos) { | 573 int route_id, const gfx::Rect& initial_pos) { |
| 572 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet."; | 574 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet."; |
| 573 } | 575 } |
| 574 | 576 |
| 575 void InterstitialPage::InterstitialPageRVHViewDelegate::ShowContextMenu( | 577 void InterstitialPage::InterstitialPageRVHViewDelegate::ShowContextMenu( |
| 576 const ContextMenuParams& params) { | 578 const ContextMenuParams& params) { |
| 577 } | 579 } |
| 578 | 580 |
| 579 void InterstitialPage::InterstitialPageRVHViewDelegate::StartDragging( | 581 void InterstitialPage::InterstitialPageRVHViewDelegate::StartDragging( |
| 580 const WebDropData& drop_data, | 582 const WebDropData& drop_data, |
| 581 WebDragOperationsMask allowed_operations) { | 583 WebDragOperationsMask allowed_operations, |
| 584 const SkBitmap& image, |
| 585 const gfx::Point& image_offset) { |
| 582 NOTREACHED() << "InterstitialPage does not support dragging yet."; | 586 NOTREACHED() << "InterstitialPage does not support dragging yet."; |
| 583 } | 587 } |
| 584 | 588 |
| 585 void InterstitialPage::InterstitialPageRVHViewDelegate::UpdateDragCursor( | 589 void InterstitialPage::InterstitialPageRVHViewDelegate::UpdateDragCursor( |
| 586 WebDragOperation) { | 590 WebDragOperation) { |
| 587 NOTREACHED() << "InterstitialPage does not support dragging yet."; | 591 NOTREACHED() << "InterstitialPage does not support dragging yet."; |
| 588 } | 592 } |
| 589 | 593 |
| 590 void InterstitialPage::InterstitialPageRVHViewDelegate::GotFocus() { | 594 void InterstitialPage::InterstitialPageRVHViewDelegate::GotFocus() { |
| 591 } | 595 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 } | 629 } |
| 626 | 630 |
| 627 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply( | 631 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply( |
| 628 int request_id, int number_of_matches, const gfx::Rect& selection_rect, | 632 int request_id, int number_of_matches, const gfx::Rect& selection_rect, |
| 629 int active_match_ordinal, bool final_update) { | 633 int active_match_ordinal, bool final_update) { |
| 630 } | 634 } |
| 631 | 635 |
| 632 int InterstitialPage::GetBrowserWindowID() const { | 636 int InterstitialPage::GetBrowserWindowID() const { |
| 633 return tab_->GetBrowserWindowID(); | 637 return tab_->GetBrowserWindowID(); |
| 634 } | 638 } |
| OLD | NEW |