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/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 2438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2449 const gfx::RectF& active_rect) { | 2449 const gfx::RectF& active_rect) { |
2450 if (delegate_) | 2450 if (delegate_) |
2451 delegate_->FindMatchRectsReply(this, version, rects, active_rect); | 2451 delegate_->FindMatchRectsReply(this, version, rects, active_rect); |
2452 } | 2452 } |
2453 | 2453 |
2454 void WebContentsImpl::OnOpenDateTimeDialog( | 2454 void WebContentsImpl::OnOpenDateTimeDialog( |
2455 const ViewHostMsg_DateTimeDialogValue_Params& value) { | 2455 const ViewHostMsg_DateTimeDialogValue_Params& value) { |
2456 date_time_chooser_->ShowDialog( | 2456 date_time_chooser_->ShowDialog( |
2457 ContentViewCore::FromWebContents(this), GetRenderViewHost(), | 2457 ContentViewCore::FromWebContents(this), GetRenderViewHost(), |
2458 value.dialog_type, value.year, value.month, value.day, value.hour, | 2458 value.dialog_type, value.year, value.month, value.day, value.hour, |
2459 value.minute, value.second, value.minimum, value.maximum); | 2459 value.minute, value.second, value.week, value.minimum, value.maximum); |
2460 } | 2460 } |
2461 | 2461 |
2462 #endif | 2462 #endif |
2463 | 2463 |
2464 void WebContentsImpl::OnCrashedPlugin(const base::FilePath& plugin_path, | 2464 void WebContentsImpl::OnCrashedPlugin(const base::FilePath& plugin_path, |
2465 base::ProcessId plugin_pid) { | 2465 base::ProcessId plugin_pid) { |
2466 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 2466 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
2467 PluginCrashed(plugin_path, plugin_pid)); | 2467 PluginCrashed(plugin_path, plugin_pid)); |
2468 } | 2468 } |
2469 | 2469 |
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3698 } | 3698 } |
3699 | 3699 |
3700 BrowserPluginGuestManager* | 3700 BrowserPluginGuestManager* |
3701 WebContentsImpl::GetBrowserPluginGuestManager() const { | 3701 WebContentsImpl::GetBrowserPluginGuestManager() const { |
3702 return static_cast<BrowserPluginGuestManager*>( | 3702 return static_cast<BrowserPluginGuestManager*>( |
3703 GetBrowserContext()->GetUserData( | 3703 GetBrowserContext()->GetUserData( |
3704 browser_plugin::kBrowserPluginGuestManagerKeyName)); | 3704 browser_plugin::kBrowserPluginGuestManagerKeyName)); |
3705 } | 3705 } |
3706 | 3706 |
3707 } // namespace content | 3707 } // namespace content |
OLD | NEW |