Chromium Code Reviews| Index: content/browser/web_contents/web_contents_impl.cc |
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
| index b7b43b4d1100903f4426ea07bec09ef70232ecff..843dc36af5772d33252b062d99bea2136015b5f6 100644 |
| --- a/content/browser/web_contents/web_contents_impl.cc |
| +++ b/content/browser/web_contents/web_contents_impl.cc |
| @@ -19,6 +19,7 @@ |
| #include "content/browser/browser_plugin/browser_plugin_embedder.h" |
| #include "content/browser/browser_plugin/browser_plugin_guest.h" |
| #include "content/browser/child_process_security_policy_impl.h" |
| +#include "content/browser/date_time_chooser.h" |
| #include "content/browser/devtools/devtools_manager_impl.h" |
| #include "content/browser/dom_storage/dom_storage_context_impl.h" |
| #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
| @@ -722,6 +723,8 @@ bool WebContentsImpl::OnMessageReceived(RenderViewHost* render_view_host, |
| #if defined(OS_ANDROID) |
|
jam
2013/01/11 23:47:18
nit: can you move this ifdef to the bottom of IPC_
Miguel Garcia
2013/01/14 16:39:40
Done.
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_FindMatchRects_Reply, |
| OnFindMatchRectsReply) |
| + IPC_MESSAGE_HANDLER(ViewHostMsg_OpenDateTimeDialog, |
| + OnOpenDateTimeDialog) |
| #endif |
| IPC_MESSAGE_HANDLER(ViewHostMsg_CrashedPlugin, OnCrashedPlugin) |
| IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) |
| @@ -1178,6 +1181,10 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) { |
| java_bridge_dispatcher_host_manager_.reset( |
| new JavaBridgeDispatcherHostManager(this)); |
| #endif |
| + |
| +#if defined(OS_ANDROID) |
| + date_time_chooser_.reset(DateTimeChooser::Create()); |
| +#endif |
| } |
| void WebContentsImpl::OnWebContentsDestroyed(WebContents* web_contents) { |
| @@ -2265,6 +2272,13 @@ void WebContentsImpl::OnFindMatchRectsReply( |
| if (delegate_) |
| delegate_->FindMatchRectsReply(this, version, rects, active_rect); |
| } |
| + |
| +void WebContentsImpl::OnOpenDateTimeDialog(int type, const std::string& value) { |
| + if (date_time_chooser_ != NULL) |
| + date_time_chooser_->ShowDialog( |
| + GetContentNativeView(), GetRenderViewHost(), type, value); |
| +} |
| + |
| #endif |
| void WebContentsImpl::OnCrashedPlugin(const FilePath& plugin_path, |