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/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 2413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2424 const gfx::RectF& active_rect) { | 2424 const gfx::RectF& active_rect) { |
2425 if (delegate_) | 2425 if (delegate_) |
2426 delegate_->FindMatchRectsReply(this, version, rects, active_rect); | 2426 delegate_->FindMatchRectsReply(this, version, rects, active_rect); |
2427 } | 2427 } |
2428 | 2428 |
2429 void WebContentsImpl::OnOpenDateTimeDialog( | 2429 void WebContentsImpl::OnOpenDateTimeDialog( |
2430 const ViewHostMsg_DateTimeDialogValue_Params& value) { | 2430 const ViewHostMsg_DateTimeDialogValue_Params& value) { |
2431 date_time_chooser_->ShowDialog( | 2431 date_time_chooser_->ShowDialog( |
2432 ContentViewCore::FromWebContents(this), GetRenderViewHost(), | 2432 ContentViewCore::FromWebContents(this), GetRenderViewHost(), |
2433 value.dialog_type, value.year, value.month, value.day, value.hour, | 2433 value.dialog_type, value.year, value.month, value.day, value.hour, |
2434 value.minute, value.second, value.minimum, value.maximum); | 2434 value.minute, value.second, value.week, value.minimum, value.maximum); |
2435 } | 2435 } |
2436 | 2436 |
2437 #endif | 2437 #endif |
2438 | 2438 |
2439 void WebContentsImpl::OnCrashedPlugin(const base::FilePath& plugin_path, | 2439 void WebContentsImpl::OnCrashedPlugin(const base::FilePath& plugin_path, |
2440 base::ProcessId plugin_pid) { | 2440 base::ProcessId plugin_pid) { |
2441 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 2441 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
2442 PluginCrashed(plugin_path, plugin_pid)); | 2442 PluginCrashed(plugin_path, plugin_pid)); |
2443 } | 2443 } |
2444 | 2444 |
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3662 } | 3662 } |
3663 | 3663 |
3664 BrowserPluginGuestManager* | 3664 BrowserPluginGuestManager* |
3665 WebContentsImpl::GetBrowserPluginGuestManager() const { | 3665 WebContentsImpl::GetBrowserPluginGuestManager() const { |
3666 return static_cast<BrowserPluginGuestManager*>( | 3666 return static_cast<BrowserPluginGuestManager*>( |
3667 GetBrowserContext()->GetUserData( | 3667 GetBrowserContext()->GetUserData( |
3668 browser_plugin::kBrowserPluginGuestManagerKeyName)); | 3668 browser_plugin::kBrowserPluginGuestManagerKeyName)); |
3669 } | 3669 } |
3670 | 3670 |
3671 } // namespace content | 3671 } // namespace content |
OLD | NEW |