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