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 "blimp/engine/feature/engine_render_widget_feature.h" | 5 #include "blimp/engine/feature/engine_render_widget_feature.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "base/numerics/safe_conversions.h" | 11 #include "base/numerics/safe_conversions.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "blimp/common/create_blimp_message.h" | 13 #include "blimp/common/create_blimp_message.h" |
14 #include "blimp/common/proto/blimp_message.pb.h" | 14 #include "blimp/common/proto/blimp_message.pb.h" |
15 #include "blimp/common/proto/compositor.pb.h" | 15 #include "blimp/common/proto/compositor.pb.h" |
16 #include "blimp/common/proto/render_widget.pb.h" | 16 #include "blimp/common/proto/render_widget.pb.h" |
17 #include "blimp/net/input_message_generator.h" | 17 #include "blimp/net/input_message_generator.h" |
18 #include "blimp/net/test_common.h" | 18 #include "blimp/net/test_common.h" |
19 #include "content/public/browser/render_widget_host.h" | 19 #include "content/public/browser/render_widget_host.h" |
20 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
21 #include "net/base/test_completion_callback.h" | 21 #include "net/base/test_completion_callback.h" |
22 #include "testing/gmock/include/gmock/gmock.h" | 22 #include "testing/gmock/include/gmock/gmock.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 #include "third_party/WebKit/public/web/WebInputEvent.h" | 24 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
25 #include "ui/base/ime/dummy_text_input_client.h" | 25 #include "ui/base/ime/dummy_text_input_client.h" |
26 | 26 |
27 using testing::_; | 27 using testing::_; |
28 using testing::InSequence; | 28 using testing::InSequence; |
29 using testing::Sequence; | 29 using testing::Sequence; |
30 | 30 |
31 namespace blimp { | 31 namespace blimp { |
32 namespace engine { | 32 namespace engine { |
33 | 33 |
34 namespace { | 34 namespace { |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 | 334 |
335 feature_.OnRenderWidgetCreated(1, &render_widget_host1_); | 335 feature_.OnRenderWidgetCreated(1, &render_widget_host1_); |
336 feature_.OnRenderWidgetCreated(2, &render_widget_host2_); | 336 feature_.OnRenderWidgetCreated(2, &render_widget_host2_); |
337 feature_.OnRenderWidgetInitialized(1, &render_widget_host1_); | 337 feature_.OnRenderWidgetInitialized(1, &render_widget_host1_); |
338 feature_.OnRenderWidgetDeleted(2, &render_widget_host2_); | 338 feature_.OnRenderWidgetDeleted(2, &render_widget_host2_); |
339 feature_.SendCompositorMessage(1, &render_widget_host1_, payload); | 339 feature_.SendCompositorMessage(1, &render_widget_host1_, payload); |
340 } | 340 } |
341 | 341 |
342 } // namespace engine | 342 } // namespace engine |
343 } // namespace blimp | 343 } // namespace blimp |
OLD | NEW |