OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/html_viewer/html_widget.h" | 5 #include "components/html_viewer/html_widget.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
8 #include "components/html_viewer/blink_settings.h" | 10 #include "components/html_viewer/blink_settings.h" |
9 #include "components/html_viewer/global_state.h" | 11 #include "components/html_viewer/global_state.h" |
10 #include "components/html_viewer/ime_controller.h" | 12 #include "components/html_viewer/ime_controller.h" |
11 #include "components/html_viewer/stats_collection_controller.h" | 13 #include "components/html_viewer/stats_collection_controller.h" |
12 #include "components/html_viewer/web_layer_tree_view_impl.h" | 14 #include "components/html_viewer/web_layer_tree_view_impl.h" |
13 #include "components/html_viewer/web_storage_namespace_impl.h" | 15 #include "components/html_viewer/web_storage_namespace_impl.h" |
14 #include "components/mus/public/cpp/window.h" | 16 #include "components/mus/public/cpp/window.h" |
15 #include "mojo/application/public/cpp/application_impl.h" | 17 #include "mojo/application/public/cpp/application_impl.h" |
16 #include "mojo/services/tracing/public/interfaces/tracing.mojom.h" | 18 #include "mojo/services/tracing/public/interfaces/tracing.mojom.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 } | 119 } |
118 | 120 |
119 blink::WebLayerTreeView* HTMLWidgetRootLocal::layerTreeView() { | 121 blink::WebLayerTreeView* HTMLWidgetRootLocal::layerTreeView() { |
120 return web_layer_tree_view_impl_.get(); | 122 return web_layer_tree_view_impl_.get(); |
121 } | 123 } |
122 | 124 |
123 void HTMLWidgetRootLocal::didMeaningfulLayout( | 125 void HTMLWidgetRootLocal::didMeaningfulLayout( |
124 blink::WebMeaningfulLayout layout_type) { | 126 blink::WebMeaningfulLayout layout_type) { |
125 static bool called = false; | 127 static bool called = false; |
126 if (!called && layout_type == blink::WebMeaningfulLayout::VisuallyNonEmpty) { | 128 if (!called && layout_type == blink::WebMeaningfulLayout::VisuallyNonEmpty) { |
127 const int64 ticks = base::TimeTicks::Now().ToInternalValue(); | 129 const int64_t ticks = base::TimeTicks::Now().ToInternalValue(); |
128 tracing::StartupPerformanceDataCollectorPtr collector = | 130 tracing::StartupPerformanceDataCollectorPtr collector = |
129 StatsCollectionController::ConnectToDataCollector(app_); | 131 StatsCollectionController::ConnectToDataCollector(app_); |
130 if (collector) | 132 if (collector) |
131 collector->SetFirstVisuallyNonEmptyLayoutTicks(ticks); | 133 collector->SetFirstVisuallyNonEmptyLayoutTicks(ticks); |
132 called = true; | 134 called = true; |
133 } | 135 } |
134 } | 136 } |
135 | 137 |
136 void HTMLWidgetRootLocal::resetInputMethod() { | 138 void HTMLWidgetRootLocal::resetInputMethod() { |
137 ime_controller_->ResetInputMethod(); | 139 ime_controller_->ResetInputMethod(); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 | 214 |
213 void HTMLWidgetLocalRoot::didUpdateTextOfFocusedElementByNonUserInput() { | 215 void HTMLWidgetLocalRoot::didUpdateTextOfFocusedElementByNonUserInput() { |
214 ime_controller_->DidUpdateTextOfFocusedElementByNonUserInput(); | 216 ime_controller_->DidUpdateTextOfFocusedElementByNonUserInput(); |
215 } | 217 } |
216 | 218 |
217 void HTMLWidgetLocalRoot::showImeIfNeeded() { | 219 void HTMLWidgetLocalRoot::showImeIfNeeded() { |
218 ime_controller_->ShowImeIfNeeded(); | 220 ime_controller_->ShowImeIfNeeded(); |
219 } | 221 } |
220 | 222 |
221 } // namespace html_viewer | 223 } // namespace html_viewer |
OLD | NEW |