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 2290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2301 const gfx::RectF& active_rect) { | 2301 const gfx::RectF& active_rect) { |
2302 if (delegate_) | 2302 if (delegate_) |
2303 delegate_->FindMatchRectsReply(this, version, rects, active_rect); | 2303 delegate_->FindMatchRectsReply(this, version, rects, active_rect); |
2304 } | 2304 } |
2305 | 2305 |
2306 void WebContentsImpl::OnOpenDateTimeDialog( | 2306 void WebContentsImpl::OnOpenDateTimeDialog( |
2307 const ViewHostMsg_DateTimeDialogValue_Params& value) { | 2307 const ViewHostMsg_DateTimeDialogValue_Params& value) { |
2308 date_time_chooser_->ShowDialog( | 2308 date_time_chooser_->ShowDialog( |
2309 ContentViewCore::FromWebContents(this), GetRenderViewHost(), | 2309 ContentViewCore::FromWebContents(this), GetRenderViewHost(), |
2310 value.dialog_type, value.year, value.month, value.day, value.hour, | 2310 value.dialog_type, value.year, value.month, value.day, value.hour, |
2311 value.minute, value.second); | 2311 value.minute, value.second, value.minimum, value.maximum); |
2312 } | 2312 } |
2313 | 2313 |
2314 #endif | 2314 #endif |
2315 | 2315 |
2316 void WebContentsImpl::OnCrashedPlugin(const base::FilePath& plugin_path, | 2316 void WebContentsImpl::OnCrashedPlugin(const base::FilePath& plugin_path, |
2317 base::ProcessId plugin_pid) { | 2317 base::ProcessId plugin_pid) { |
2318 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 2318 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
2319 PluginCrashed(plugin_path, plugin_pid)); | 2319 PluginCrashed(plugin_path, plugin_pid)); |
2320 } | 2320 } |
2321 | 2321 |
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3523 } | 3523 } |
3524 | 3524 |
3525 BrowserPluginGuestManager* | 3525 BrowserPluginGuestManager* |
3526 WebContentsImpl::GetBrowserPluginGuestManager() const { | 3526 WebContentsImpl::GetBrowserPluginGuestManager() const { |
3527 return static_cast<BrowserPluginGuestManager*>( | 3527 return static_cast<BrowserPluginGuestManager*>( |
3528 GetBrowserContext()->GetUserData( | 3528 GetBrowserContext()->GetUserData( |
3529 browser_plugin::kBrowserPluginGuestManagerKeyName)); | 3529 browser_plugin::kBrowserPluginGuestManagerKeyName)); |
3530 } | 3530 } |
3531 | 3531 |
3532 } // namespace content | 3532 } // namespace content |
OLD | NEW |