OLD | NEW |
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/tab_contents_view.h" | 5 #include "chrome/browser/tab_contents/tab_contents_view.h" |
6 | 6 |
7 #include "chrome/browser/renderer_host/render_process_host.h" | 7 #include "chrome/browser/renderer_host/render_process_host.h" |
8 #include "chrome/browser/renderer_host/render_view_host.h" | 8 #include "chrome/browser/renderer_host/render_view_host.h" |
9 #include "chrome/browser/renderer_host/render_widget_host.h" | 9 #include "chrome/browser/renderer_host/render_widget_host.h" |
10 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 10 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 void TabContentsView::Deactivate() { | 88 void TabContentsView::Deactivate() { |
89 tab_contents_->Deactivate(); | 89 tab_contents_->Deactivate(); |
90 } | 90 } |
91 | 91 |
92 void TabContentsView::ShowCreatedFullscreenWidget(int route_id) { | 92 void TabContentsView::ShowCreatedFullscreenWidget(int route_id) { |
93 RenderWidgetHostView* widget_host_view = | 93 RenderWidgetHostView* widget_host_view = |
94 delegate_view_helper_.GetCreatedWidget(route_id); | 94 delegate_view_helper_.GetCreatedWidget(route_id); |
95 ShowCreatedFullscreenWidgetInternal(widget_host_view); | 95 ShowCreatedFullscreenWidgetInternal(widget_host_view); |
96 } | 96 } |
97 | 97 |
| 98 bool TabContentsView::IsWebCopyCutEnabled() { |
| 99 return false; |
| 100 } |
| 101 |
| 102 bool TabContentsView::IsWebPasteEnabled() { |
| 103 return false; |
| 104 } |
| 105 |
98 void TabContentsView::LostCapture() { | 106 void TabContentsView::LostCapture() { |
99 if (tab_contents_->delegate()) | 107 if (tab_contents_->delegate()) |
100 tab_contents_->delegate()->LostCapture(); | 108 tab_contents_->delegate()->LostCapture(); |
101 } | 109 } |
102 | 110 |
103 bool TabContentsView::PreHandleKeyboardEvent( | 111 bool TabContentsView::PreHandleKeyboardEvent( |
104 const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) { | 112 const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) { |
105 return tab_contents_->delegate() && | 113 return tab_contents_->delegate() && |
106 tab_contents_->delegate()->PreHandleKeyboardEvent( | 114 tab_contents_->delegate()->PreHandleKeyboardEvent( |
107 event, is_keyboard_shortcut); | 115 event, is_keyboard_shortcut); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 } | 168 } |
161 | 169 |
162 void TabContentsView::ShowCreatedFullscreenWidgetInternal( | 170 void TabContentsView::ShowCreatedFullscreenWidgetInternal( |
163 RenderWidgetHostView* widget_host_view) { | 171 RenderWidgetHostView* widget_host_view) { |
164 if (tab_contents_->delegate()) | 172 if (tab_contents_->delegate()) |
165 tab_contents_->delegate()->RenderWidgetShowing(); | 173 tab_contents_->delegate()->RenderWidgetShowing(); |
166 | 174 |
167 widget_host_view->InitAsFullscreen(); | 175 widget_host_view->InitAsFullscreen(); |
168 widget_host_view->GetRenderWidgetHost()->Init(); | 176 widget_host_view->GetRenderWidgetHost()->Init(); |
169 } | 177 } |
OLD | NEW |