OLD | NEW |
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 "content/browser/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 2292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2303 | 2303 |
2304 #if defined(OS_ANDROID) | 2304 #if defined(OS_ANDROID) |
2305 void WebContentsImpl::OnFindMatchRectsReply( | 2305 void WebContentsImpl::OnFindMatchRectsReply( |
2306 int version, | 2306 int version, |
2307 const std::vector<gfx::RectF>& rects, | 2307 const std::vector<gfx::RectF>& rects, |
2308 const gfx::RectF& active_rect) { | 2308 const gfx::RectF& active_rect) { |
2309 if (delegate_) | 2309 if (delegate_) |
2310 delegate_->FindMatchRectsReply(this, version, rects, active_rect); | 2310 delegate_->FindMatchRectsReply(this, version, rects, active_rect); |
2311 } | 2311 } |
2312 | 2312 |
2313 void WebContentsImpl::OnOpenDateTimeDialog(int type, const std::string& value) { | 2313 void WebContentsImpl::OnOpenDateTimeDialog( |
| 2314 ViewHostMsg_DateTimeValue_Params value) { |
2314 date_time_chooser_->ShowDialog( | 2315 date_time_chooser_->ShowDialog( |
2315 GetContentNativeView(), GetRenderViewHost(), type, value); | 2316 GetContentNativeView(), GetRenderViewHost(), value.dialog_type, |
| 2317 value.year, value.month, value.day, value.hour, |
| 2318 value.minute, value.second); |
2316 } | 2319 } |
2317 | 2320 |
2318 #endif | 2321 #endif |
2319 | 2322 |
2320 void WebContentsImpl::OnCrashedPlugin(const FilePath& plugin_path, | 2323 void WebContentsImpl::OnCrashedPlugin(const FilePath& plugin_path, |
2321 base::ProcessId plugin_pid) { | 2324 base::ProcessId plugin_pid) { |
2322 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 2325 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
2323 PluginCrashed(plugin_path, plugin_pid)); | 2326 PluginCrashed(plugin_path, plugin_pid)); |
2324 } | 2327 } |
2325 | 2328 |
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3452 | 3455 |
3453 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { | 3456 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { |
3454 return browser_plugin_guest_.get(); | 3457 return browser_plugin_guest_.get(); |
3455 } | 3458 } |
3456 | 3459 |
3457 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { | 3460 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { |
3458 return browser_plugin_embedder_.get(); | 3461 return browser_plugin_embedder_.get(); |
3459 } | 3462 } |
3460 | 3463 |
3461 } // namespace content | 3464 } // namespace content |
OLD | NEW |