| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |