| 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 2340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2351 const gfx::RectF& active_rect) { | 2351 const gfx::RectF& active_rect) { |
| 2352 if (delegate_) | 2352 if (delegate_) |
| 2353 delegate_->FindMatchRectsReply(this, version, rects, active_rect); | 2353 delegate_->FindMatchRectsReply(this, version, rects, active_rect); |
| 2354 } | 2354 } |
| 2355 | 2355 |
| 2356 void WebContentsImpl::OnOpenDateTimeDialog( | 2356 void WebContentsImpl::OnOpenDateTimeDialog( |
| 2357 const ViewHostMsg_DateTimeDialogValue_Params& value) { | 2357 const ViewHostMsg_DateTimeDialogValue_Params& value) { |
| 2358 date_time_chooser_->ShowDialog( | 2358 date_time_chooser_->ShowDialog( |
| 2359 ContentViewCore::FromWebContents(this), GetRenderViewHost(), | 2359 ContentViewCore::FromWebContents(this), GetRenderViewHost(), |
| 2360 value.dialog_type, value.year, value.month, value.day, value.hour, | 2360 value.dialog_type, value.year, value.month, value.day, value.hour, |
| 2361 value.minute, value.second); | 2361 value.minute, value.second, value.minimum, value.maximum); |
| 2362 } | 2362 } |
| 2363 | 2363 |
| 2364 #endif | 2364 #endif |
| 2365 | 2365 |
| 2366 void WebContentsImpl::OnCrashedPlugin(const base::FilePath& plugin_path, | 2366 void WebContentsImpl::OnCrashedPlugin(const base::FilePath& plugin_path, |
| 2367 base::ProcessId plugin_pid) { | 2367 base::ProcessId plugin_pid) { |
| 2368 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 2368 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 2369 PluginCrashed(plugin_path, plugin_pid)); | 2369 PluginCrashed(plugin_path, plugin_pid)); |
| 2370 } | 2370 } |
| 2371 | 2371 |
| (...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3575 } | 3575 } |
| 3576 | 3576 |
| 3577 BrowserPluginGuestManager* | 3577 BrowserPluginGuestManager* |
| 3578 WebContentsImpl::GetBrowserPluginGuestManager() const { | 3578 WebContentsImpl::GetBrowserPluginGuestManager() const { |
| 3579 return static_cast<BrowserPluginGuestManager*>( | 3579 return static_cast<BrowserPluginGuestManager*>( |
| 3580 GetBrowserContext()->GetUserData( | 3580 GetBrowserContext()->GetUserData( |
| 3581 browser_plugin::kBrowserPluginGuestManagerKeyName)); | 3581 browser_plugin::kBrowserPluginGuestManagerKeyName)); |
| 3582 } | 3582 } |
| 3583 | 3583 |
| 3584 } // namespace content | 3584 } // namespace content |
| OLD | NEW |