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

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

Issue 6480106: Add IPCs to check web copy/cut/paste for extensions with the appropriate permission bit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
Patch Set: Prefix new methods with 'web'. Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <vector> 7 #include <vector>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 107 virtual void ShowPopupMenu(const gfx::Rect& bounds,
108 int item_height, 108 int item_height,
109 double item_font_size, 109 double item_font_size,
110 int selected_item, 110 int selected_item,
111 const std::vector<WebMenuItem>& items, 111 const std::vector<WebMenuItem>& items,
112 bool right_aligned); 112 bool right_aligned);
113 virtual bool IsWebCopyCutEnabled();
114 virtual bool IsWebPasteEnabled();
113 virtual void StartDragging(const WebDropData& drop_data, 115 virtual void StartDragging(const WebDropData& drop_data,
114 WebDragOperationsMask operations_allowed, 116 WebDragOperationsMask operations_allowed,
115 const SkBitmap& image, 117 const SkBitmap& image,
116 const gfx::Point& image_offset); 118 const gfx::Point& image_offset);
117 virtual void UpdateDragCursor(WebDragOperation operation); 119 virtual void UpdateDragCursor(WebDragOperation operation);
118 virtual void GotFocus(); 120 virtual void GotFocus();
119 virtual void TakeFocus(bool reverse); 121 virtual void TakeFocus(bool reverse);
120 virtual void LostCapture(); 122 virtual void LostCapture();
121 virtual void Activate(); 123 virtual void Activate();
122 virtual void Deactivate(); 124 virtual void Deactivate();
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 634
633 void InterstitialPage::InterstitialPageRVHViewDelegate::ShowPopupMenu( 635 void InterstitialPage::InterstitialPageRVHViewDelegate::ShowPopupMenu(
634 const gfx::Rect& bounds, 636 const gfx::Rect& bounds,
635 int item_height, 637 int item_height,
636 double item_font_size, 638 double item_font_size,
637 int selected_item, 639 int selected_item,
638 const std::vector<WebMenuItem>& items, 640 const std::vector<WebMenuItem>& items,
639 bool right_aligned) { 641 bool right_aligned) {
640 } 642 }
641 643
644 bool InterstitialPage::InterstitialPageRVHViewDelegate::IsWebCopyCutEnabled() {
645 return false;
646 }
647
648 bool InterstitialPage::InterstitialPageRVHViewDelegate::IsWebPasteEnabled() {
649 return false;
650 }
651
642 void InterstitialPage::InterstitialPageRVHViewDelegate::StartDragging( 652 void InterstitialPage::InterstitialPageRVHViewDelegate::StartDragging(
643 const WebDropData& drop_data, 653 const WebDropData& drop_data,
644 WebDragOperationsMask allowed_operations, 654 WebDragOperationsMask allowed_operations,
645 const SkBitmap& image, 655 const SkBitmap& image,
646 const gfx::Point& image_offset) { 656 const gfx::Point& image_offset) {
647 NOTREACHED() << "InterstitialPage does not support dragging yet."; 657 NOTREACHED() << "InterstitialPage does not support dragging yet.";
648 } 658 }
649 659
650 void InterstitialPage::InterstitialPageRVHViewDelegate::UpdateDragCursor( 660 void InterstitialPage::InterstitialPageRVHViewDelegate::UpdateDragCursor(
651 WebDragOperation) { 661 WebDragOperation) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 734
725 void InterstitialPage::UpdateInspectorSetting(const std::string& key, 735 void InterstitialPage::UpdateInspectorSetting(const std::string& key,
726 const std::string& value) { 736 const std::string& value) {
727 RenderViewHostDelegateHelper::UpdateInspectorSetting( 737 RenderViewHostDelegateHelper::UpdateInspectorSetting(
728 tab_->profile(), key, value); 738 tab_->profile(), key, value);
729 } 739 }
730 740
731 void InterstitialPage::ClearInspectorSettings() { 741 void InterstitialPage::ClearInspectorSettings() {
732 RenderViewHostDelegateHelper::ClearInspectorSettings(tab_->profile()); 742 RenderViewHostDelegateHelper::ClearInspectorSettings(tab_->profile());
733 } 743 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698