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

Side by Side Diff: content/browser/renderer_host/render_widget_host_delegate.cc

Issue 1410313006: Separate RenderViewHost from RenderWidgetHost, part 5: move calls to the RenderWidgetHostDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "content/browser/renderer_host/render_widget_host_delegate.h" 6 #include "content/browser/renderer_host/render_widget_host_delegate.h"
7 #include "ui/gfx/geometry/rect.h"
7 8
8 namespace content { 9 namespace content {
9 10
10 bool RenderWidgetHostDelegate::PreHandleKeyboardEvent( 11 bool RenderWidgetHostDelegate::PreHandleKeyboardEvent(
11 const NativeWebKeyboardEvent& event, 12 const NativeWebKeyboardEvent& event,
12 bool* is_keyboard_shortcut) { 13 bool* is_keyboard_shortcut) {
13 return false; 14 return false;
14 } 15 }
15 16
16 bool RenderWidgetHostDelegate::HandleWheelEvent( 17 bool RenderWidgetHostDelegate::HandleWheelEvent(
(...skipping 29 matching lines...) Expand all
46 RenderWidgetHostDelegate::GetInputEventRouter() { 47 RenderWidgetHostDelegate::GetInputEventRouter() {
47 return nullptr; 48 return nullptr;
48 } 49 }
49 50
50 // If a delegate does not override this, the RenderWidgetHostView will 51 // If a delegate does not override this, the RenderWidgetHostView will
51 // assume its own RenderWidgetHost should consume keyboard events. 52 // assume its own RenderWidgetHost should consume keyboard events.
52 RenderWidgetHostImpl* RenderWidgetHostDelegate::GetFocusedRenderWidgetHost() { 53 RenderWidgetHostImpl* RenderWidgetHostDelegate::GetFocusedRenderWidgetHost() {
53 return nullptr; 54 return nullptr;
54 } 55 }
55 56
57 gfx::Rect RenderWidgetHostDelegate::GetRootWindowResizerRect(
58 RenderWidgetHostImpl* render_widget_host) const {
59 return gfx::Rect();
60 };
61
56 } // namespace content 62 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_delegate.h ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698