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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 public: | 87 public: |
88 explicit InterstitialPageRVHViewDelegate(InterstitialPage* page); | 88 explicit InterstitialPageRVHViewDelegate(InterstitialPage* page); |
89 | 89 |
90 // RenderViewHostDelegate::View implementation: | 90 // RenderViewHostDelegate::View implementation: |
91 virtual void CreateNewWindow( | 91 virtual void CreateNewWindow( |
92 int route_id, | 92 int route_id, |
93 WindowContainerType window_container_type, | 93 WindowContainerType window_container_type, |
94 const string16& frame_name); | 94 const string16& frame_name); |
95 virtual void CreateNewWidget(int route_id, | 95 virtual void CreateNewWidget(int route_id, |
96 WebKit::WebPopupType popup_type); | 96 WebKit::WebPopupType popup_type); |
| 97 virtual void CreateNewFullscreenWidget(int route_id, |
| 98 WebKit::WebPopupType popup_type); |
97 virtual void ShowCreatedWindow(int route_id, | 99 virtual void ShowCreatedWindow(int route_id, |
98 WindowOpenDisposition disposition, | 100 WindowOpenDisposition disposition, |
99 const gfx::Rect& initial_pos, | 101 const gfx::Rect& initial_pos, |
100 bool user_gesture); | 102 bool user_gesture); |
101 virtual void ShowCreatedWidget(int route_id, | 103 virtual void ShowCreatedWidget(int route_id, |
102 const gfx::Rect& initial_pos); | 104 const gfx::Rect& initial_pos); |
| 105 virtual void ShowCreatedFullscreenWidget(int route_id); |
103 virtual void ShowContextMenu(const ContextMenuParams& params); | 106 virtual void ShowContextMenu(const ContextMenuParams& params); |
104 virtual void StartDragging(const WebDropData& drop_data, | 107 virtual void StartDragging(const WebDropData& drop_data, |
105 WebDragOperationsMask operations_allowed, | 108 WebDragOperationsMask operations_allowed, |
106 const SkBitmap& image, | 109 const SkBitmap& image, |
107 const gfx::Point& image_offset); | 110 const gfx::Point& image_offset); |
108 virtual void UpdateDragCursor(WebDragOperation operation); | 111 virtual void UpdateDragCursor(WebDragOperation operation); |
109 virtual void GotFocus(); | 112 virtual void GotFocus(); |
110 virtual void TakeFocus(bool reverse); | 113 virtual void TakeFocus(bool reverse); |
111 virtual void Activate(); | 114 virtual void Activate(); |
112 virtual void Deactivate(); | 115 virtual void Deactivate(); |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 WindowContainerType window_container_type, | 567 WindowContainerType window_container_type, |
565 const string16& frame_name) { | 568 const string16& frame_name) { |
566 NOTREACHED() << "InterstitialPage does not support showing popups yet."; | 569 NOTREACHED() << "InterstitialPage does not support showing popups yet."; |
567 } | 570 } |
568 | 571 |
569 void InterstitialPage::InterstitialPageRVHViewDelegate::CreateNewWidget( | 572 void InterstitialPage::InterstitialPageRVHViewDelegate::CreateNewWidget( |
570 int route_id, WebKit::WebPopupType popup_type) { | 573 int route_id, WebKit::WebPopupType popup_type) { |
571 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet."; | 574 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet."; |
572 } | 575 } |
573 | 576 |
| 577 void |
| 578 InterstitialPage::InterstitialPageRVHViewDelegate::CreateNewFullscreenWidget( |
| 579 int route_id, WebKit::WebPopupType popup_type) { |
| 580 NOTREACHED() |
| 581 << "InterstitialPage does not support showing full screen popups."; |
| 582 } |
| 583 |
574 void InterstitialPage::InterstitialPageRVHViewDelegate::ShowCreatedWindow( | 584 void InterstitialPage::InterstitialPageRVHViewDelegate::ShowCreatedWindow( |
575 int route_id, WindowOpenDisposition disposition, | 585 int route_id, WindowOpenDisposition disposition, |
576 const gfx::Rect& initial_pos, bool user_gesture) { | 586 const gfx::Rect& initial_pos, bool user_gesture) { |
577 NOTREACHED() << "InterstitialPage does not support showing popups yet."; | 587 NOTREACHED() << "InterstitialPage does not support showing popups yet."; |
578 } | 588 } |
579 | 589 |
580 void InterstitialPage::InterstitialPageRVHViewDelegate::ShowCreatedWidget( | 590 void InterstitialPage::InterstitialPageRVHViewDelegate::ShowCreatedWidget( |
581 int route_id, const gfx::Rect& initial_pos) { | 591 int route_id, const gfx::Rect& initial_pos) { |
582 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet."; | 592 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet."; |
583 } | 593 } |
584 | 594 |
| 595 void |
| 596 InterstitialPage::InterstitialPageRVHViewDelegate::ShowCreatedFullscreenWidget( |
| 597 int route_id) { |
| 598 NOTREACHED() |
| 599 << "InterstitialPage does not support showing full screen popups."; |
| 600 } |
| 601 |
585 void InterstitialPage::InterstitialPageRVHViewDelegate::ShowContextMenu( | 602 void InterstitialPage::InterstitialPageRVHViewDelegate::ShowContextMenu( |
586 const ContextMenuParams& params) { | 603 const ContextMenuParams& params) { |
587 } | 604 } |
588 | 605 |
589 void InterstitialPage::InterstitialPageRVHViewDelegate::StartDragging( | 606 void InterstitialPage::InterstitialPageRVHViewDelegate::StartDragging( |
590 const WebDropData& drop_data, | 607 const WebDropData& drop_data, |
591 WebDragOperationsMask allowed_operations, | 608 WebDragOperationsMask allowed_operations, |
592 const SkBitmap& image, | 609 const SkBitmap& image, |
593 const gfx::Point& image_offset) { | 610 const gfx::Point& image_offset) { |
594 NOTREACHED() << "InterstitialPage does not support dragging yet."; | 611 NOTREACHED() << "InterstitialPage does not support dragging yet."; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 } | 669 } |
653 | 670 |
654 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply( | 671 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply( |
655 int request_id, int number_of_matches, const gfx::Rect& selection_rect, | 672 int request_id, int number_of_matches, const gfx::Rect& selection_rect, |
656 int active_match_ordinal, bool final_update) { | 673 int active_match_ordinal, bool final_update) { |
657 } | 674 } |
658 | 675 |
659 int InterstitialPage::GetBrowserWindowID() const { | 676 int InterstitialPage::GetBrowserWindowID() const { |
660 return tab_->GetBrowserWindowID(); | 677 return tab_->GetBrowserWindowID(); |
661 } | 678 } |
OLD | NEW |