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 2482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2493 const gfx::RectF& active_rect) { | 2493 const gfx::RectF& active_rect) { |
2494 if (delegate_) | 2494 if (delegate_) |
2495 delegate_->FindMatchRectsReply(this, version, rects, active_rect); | 2495 delegate_->FindMatchRectsReply(this, version, rects, active_rect); |
2496 } | 2496 } |
2497 | 2497 |
2498 void WebContentsImpl::OnOpenDateTimeDialog( | 2498 void WebContentsImpl::OnOpenDateTimeDialog( |
2499 const ViewHostMsg_DateTimeDialogValue_Params& value) { | 2499 const ViewHostMsg_DateTimeDialogValue_Params& value) { |
2500 date_time_chooser_->ShowDialog(ContentViewCore::FromWebContents(this), | 2500 date_time_chooser_->ShowDialog(ContentViewCore::FromWebContents(this), |
2501 GetRenderViewHost(), | 2501 GetRenderViewHost(), |
2502 value.dialog_type, | 2502 value.dialog_type, |
2503 value.year, | 2503 value.current_value, |
2504 value.month, | |
2505 value.day, | |
2506 value.hour, | |
2507 value.minute, | |
2508 value.second, | |
2509 value.milli, | |
2510 value.week, | |
2511 value.minimum, | 2504 value.minimum, |
2512 value.maximum, | 2505 value.maximum, |
2513 value.step); | 2506 value.step, |
| 2507 value.suggestions); |
2514 } | 2508 } |
2515 | 2509 |
2516 #endif | 2510 #endif |
2517 | 2511 |
2518 void WebContentsImpl::OnCrashedPlugin(const base::FilePath& plugin_path, | 2512 void WebContentsImpl::OnCrashedPlugin(const base::FilePath& plugin_path, |
2519 base::ProcessId plugin_pid) { | 2513 base::ProcessId plugin_pid) { |
2520 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 2514 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
2521 PluginCrashed(plugin_path, plugin_pid)); | 2515 PluginCrashed(plugin_path, plugin_pid)); |
2522 } | 2516 } |
2523 | 2517 |
(...skipping 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3859 gfx::Size WebContentsImpl::GetSizeForNewRenderView() const { | 3853 gfx::Size WebContentsImpl::GetSizeForNewRenderView() const { |
3860 gfx::Size size; | 3854 gfx::Size size; |
3861 if (delegate_) | 3855 if (delegate_) |
3862 size = delegate_->GetSizeForNewRenderView(this); | 3856 size = delegate_->GetSizeForNewRenderView(this); |
3863 if (size.IsEmpty()) | 3857 if (size.IsEmpty()) |
3864 size = view_->GetContainerSize(); | 3858 size = view_->GetContainerSize(); |
3865 return size; | 3859 return size; |
3866 } | 3860 } |
3867 | 3861 |
3868 } // namespace content | 3862 } // namespace content |
OLD | NEW |