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

Side by Side Diff: apps/custom_launcher_page_contents.cc

Issue 691823002: Add WebContents source to methods in WebContentsDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « apps/custom_launcher_page_contents.h ('k') | athena/content/web_activity.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "apps/custom_launcher_page_contents.h" 5 #include "apps/custom_launcher_page_contents.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" 10 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 initial_pos, 80 initial_pos,
81 user_gesture, 81 user_gesture,
82 was_blocked); 82 was_blocked);
83 } 83 }
84 84
85 bool CustomLauncherPageContents::IsPopupOrPanel( 85 bool CustomLauncherPageContents::IsPopupOrPanel(
86 const content::WebContents* source) const { 86 const content::WebContents* source) const {
87 return true; 87 return true;
88 } 88 }
89 89
90 bool CustomLauncherPageContents::ShouldSuppressDialogs() { 90 bool CustomLauncherPageContents::ShouldSuppressDialogs(
91 content::WebContents* source) {
91 return true; 92 return true;
92 } 93 }
93 94
94 bool CustomLauncherPageContents::PreHandleGestureEvent( 95 bool CustomLauncherPageContents::PreHandleGestureEvent(
95 content::WebContents* source, 96 content::WebContents* source,
96 const blink::WebGestureEvent& event) { 97 const blink::WebGestureEvent& event) {
97 return extensions::AppWebContentsHelper::ShouldSuppressGestureEvent(event); 98 return extensions::AppWebContentsHelper::ShouldSuppressGestureEvent(event);
98 } 99 }
99 100
100 content::ColorChooser* CustomLauncherPageContents::OpenColorChooser( 101 content::ColorChooser* CustomLauncherPageContents::OpenColorChooser(
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 return web_contents(); 155 return web_contents();
155 } 156 }
156 157
157 void CustomLauncherPageContents::OnRequest( 158 void CustomLauncherPageContents::OnRequest(
158 const ExtensionHostMsg_Request_Params& params) { 159 const ExtensionHostMsg_Request_Params& params) {
159 extension_function_dispatcher_->Dispatch(params, 160 extension_function_dispatcher_->Dispatch(params,
160 web_contents_->GetRenderViewHost()); 161 web_contents_->GetRenderViewHost());
161 } 162 }
162 163
163 } // namespace apps 164 } // namespace apps
OLDNEW
« no previous file with comments | « apps/custom_launcher_page_contents.h ('k') | athena/content/web_activity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698