| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 virtual void CreateNewFullscreenWidget(int route_id, | 97 virtual void CreateNewFullscreenWidget(int route_id, |
| 98 WebKit::WebPopupType popup_type); | 98 WebKit::WebPopupType popup_type); |
| 99 virtual void ShowCreatedWindow(int route_id, | 99 virtual void ShowCreatedWindow(int route_id, |
| 100 WindowOpenDisposition disposition, | 100 WindowOpenDisposition disposition, |
| 101 const gfx::Rect& initial_pos, | 101 const gfx::Rect& initial_pos, |
| 102 bool user_gesture); | 102 bool user_gesture); |
| 103 virtual void ShowCreatedWidget(int route_id, | 103 virtual void ShowCreatedWidget(int route_id, |
| 104 const gfx::Rect& initial_pos); | 104 const gfx::Rect& initial_pos); |
| 105 virtual void ShowCreatedFullscreenWidget(int route_id); | 105 virtual void ShowCreatedFullscreenWidget(int route_id); |
| 106 virtual void ShowContextMenu(const ContextMenuParams& params); | 106 virtual void ShowContextMenu(const ContextMenuParams& params); |
| 107 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
| 108 int item_height, |
| 109 double item_font_size, |
| 110 int selected_item, |
| 111 const std::vector<WebMenuItem>& items, |
| 112 bool right_aligned); |
| 107 virtual void StartDragging(const WebDropData& drop_data, | 113 virtual void StartDragging(const WebDropData& drop_data, |
| 108 WebDragOperationsMask operations_allowed, | 114 WebDragOperationsMask operations_allowed, |
| 109 const SkBitmap& image, | 115 const SkBitmap& image, |
| 110 const gfx::Point& image_offset); | 116 const gfx::Point& image_offset); |
| 111 virtual void UpdateDragCursor(WebDragOperation operation); | 117 virtual void UpdateDragCursor(WebDragOperation operation); |
| 112 virtual void GotFocus(); | 118 virtual void GotFocus(); |
| 113 virtual void TakeFocus(bool reverse); | 119 virtual void TakeFocus(bool reverse); |
| 114 virtual void LostCapture(); | 120 virtual void LostCapture(); |
| 115 virtual void Activate(); | 121 virtual void Activate(); |
| 116 virtual void Deactivate(); | 122 virtual void Deactivate(); |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 InterstitialPage::InterstitialPageRVHViewDelegate::ShowCreatedFullscreenWidget( | 614 InterstitialPage::InterstitialPageRVHViewDelegate::ShowCreatedFullscreenWidget( |
| 609 int route_id) { | 615 int route_id) { |
| 610 NOTREACHED() | 616 NOTREACHED() |
| 611 << "InterstitialPage does not support showing full screen popups."; | 617 << "InterstitialPage does not support showing full screen popups."; |
| 612 } | 618 } |
| 613 | 619 |
| 614 void InterstitialPage::InterstitialPageRVHViewDelegate::ShowContextMenu( | 620 void InterstitialPage::InterstitialPageRVHViewDelegate::ShowContextMenu( |
| 615 const ContextMenuParams& params) { | 621 const ContextMenuParams& params) { |
| 616 } | 622 } |
| 617 | 623 |
| 624 void InterstitialPage::InterstitialPageRVHViewDelegate::ShowPopupMenu( |
| 625 const gfx::Rect& bounds, |
| 626 int item_height, |
| 627 double item_font_size, |
| 628 int selected_item, |
| 629 const std::vector<WebMenuItem>& items, |
| 630 bool right_aligned) { |
| 631 } |
| 632 |
| 618 void InterstitialPage::InterstitialPageRVHViewDelegate::StartDragging( | 633 void InterstitialPage::InterstitialPageRVHViewDelegate::StartDragging( |
| 619 const WebDropData& drop_data, | 634 const WebDropData& drop_data, |
| 620 WebDragOperationsMask allowed_operations, | 635 WebDragOperationsMask allowed_operations, |
| 621 const SkBitmap& image, | 636 const SkBitmap& image, |
| 622 const gfx::Point& image_offset) { | 637 const gfx::Point& image_offset) { |
| 623 NOTREACHED() << "InterstitialPage does not support dragging yet."; | 638 NOTREACHED() << "InterstitialPage does not support dragging yet."; |
| 624 } | 639 } |
| 625 | 640 |
| 626 void InterstitialPage::InterstitialPageRVHViewDelegate::UpdateDragCursor( | 641 void InterstitialPage::InterstitialPageRVHViewDelegate::UpdateDragCursor( |
| 627 WebDragOperation) { | 642 WebDragOperation) { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply( | 707 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply( |
| 693 int request_id, int number_of_matches, const gfx::Rect& selection_rect, | 708 int request_id, int number_of_matches, const gfx::Rect& selection_rect, |
| 694 int active_match_ordinal, bool final_update) { | 709 int active_match_ordinal, bool final_update) { |
| 695 } | 710 } |
| 696 | 711 |
| 697 int InterstitialPage::GetBrowserWindowID() const { | 712 int InterstitialPage::GetBrowserWindowID() const { |
| 698 return tab_->GetBrowserWindowID(); | 713 return tab_->GetBrowserWindowID(); |
| 699 } | 714 } |
| 700 | 715 |
| 701 void InterstitialPage::UpdateInspectorSetting(const std::string& key, | 716 void InterstitialPage::UpdateInspectorSetting(const std::string& key, |
| 702 const std::string& value) { | 717 const std::string& value) { |
| 703 RenderViewHostDelegateHelper::UpdateInspectorSetting(tab_->profile(), key, val
ue); | 718 RenderViewHostDelegateHelper::UpdateInspectorSetting( |
| 719 tab_->profile(), key, value); |
| 704 } | 720 } |
| 705 | 721 |
| 706 void InterstitialPage::ClearInspectorSettings() { | 722 void InterstitialPage::ClearInspectorSettings() { |
| 707 RenderViewHostDelegateHelper::ClearInspectorSettings(tab_->profile()); | 723 RenderViewHostDelegateHelper::ClearInspectorSettings(tab_->profile()); |
| 708 } | 724 } |
| OLD | NEW |