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

Side by Side Diff: chrome/browser/chromeos/first_run/first_run_view.cc

Issue 2089933002: Context Menu Refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing nits Created 4 years, 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/chromeos/first_run/first_run_view.h" 5 #include "chrome/browser/chromeos/first_run/first_run_view.h"
6 6
7 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" 7 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h"
8 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" 8 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h"
9 #include "chrome/common/url_constants.h" 9 #include "chrome/common/url_constants.h"
10 #include "content/public/browser/render_view_host.h" 10 #include "content/public/browser/render_view_host.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 void FirstRunView::RequestFocus() { 48 void FirstRunView::RequestFocus() {
49 web_view_->RequestFocus(); 49 web_view_->RequestFocus();
50 } 50 }
51 51
52 content::WebContents* FirstRunView::GetWebContents() { 52 content::WebContents* FirstRunView::GetWebContents() {
53 return web_view_->web_contents(); 53 return web_view_->web_contents();
54 } 54 }
55 55
56 bool FirstRunView::HandleContextMenu( 56 bool FirstRunView::HandleContextMenu(RenderFrameHost* render_frame_host,
57 const content::ContextMenuParams& params) { 57 const content::ContextMenuParams& params) {
58 // Discards context menu. 58 // Discards context menu.
59 return true; 59 return true;
60 } 60 }
61 61
62 bool FirstRunView::PreHandleGestureEvent( 62 bool FirstRunView::PreHandleGestureEvent(
63 content::WebContents* source, 63 content::WebContents* source,
64 const blink::WebGestureEvent& event) { 64 const blink::WebGestureEvent& event) {
65 // Disable pinch zooming. 65 // Disable pinch zooming.
66 return event.type == blink::WebGestureEvent::GesturePinchBegin || 66 return event.type == blink::WebGestureEvent::GesturePinchBegin ||
67 event.type == blink::WebGestureEvent::GesturePinchUpdate || 67 event.type == blink::WebGestureEvent::GesturePinchUpdate ||
68 event.type == blink::WebGestureEvent::GesturePinchEnd; 68 event.type == blink::WebGestureEvent::GesturePinchEnd;
69 } 69 }
70 70
71 } // namespace chromeos 71 } // namespace chromeos
72 72
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698