| 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 "base/numerics/safe_conversions.h" | 7 #include "base/numerics/safe_conversions.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "blimp/common/create_blimp_message.h" | 9 #include "blimp/common/create_blimp_message.h" |
| 10 #include "blimp/common/proto/blimp_message.pb.h" | 10 #include "blimp/common/proto/blimp_message.pb.h" |
| 11 #include "blimp/common/proto/compositor.pb.h" | 11 #include "blimp/common/proto/compositor.pb.h" |
| 12 #include "blimp/common/proto/input.pb.h" | 12 #include "blimp/common/proto/input.pb.h" |
| 13 #include "blimp/common/proto/render_widget.pb.h" | 13 #include "blimp/common/proto/render_widget.pb.h" |
| 14 #include "blimp/net/input_message_converter.h" | 14 #include "blimp/net/input_message_converter.h" |
| 15 #include "content/public/browser/render_widget_host.h" | 15 #include "content/public/browser/render_widget_host.h" |
| 16 #include "content/public/browser/render_widget_host_view.h" | 16 #include "content/public/browser/render_widget_host_view.h" |
| 17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
| 18 #include "third_party/WebKit/public/web/WebInputEvent.h" | 18 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 19 #include "ui/events/event.h" | 19 #include "ui/events/event.h" |
| 20 #include "ui/events/keycodes/dom/dom_code.h" | 20 #include "ui/events/keycodes/dom/dom_code.h" |
| 21 | 21 |
| 22 namespace blimp { | 22 namespace blimp { |
| 23 namespace engine { | 23 namespace engine { |
| 24 | 24 |
| 25 EngineRenderWidgetFeature::EngineRenderWidgetFeature(SettingsManager* settings) | 25 EngineRenderWidgetFeature::EngineRenderWidgetFeature(SettingsManager* settings) |
| 26 : settings_manager_(settings), weak_factory_(this) { | 26 : settings_manager_(settings), weak_factory_(this) { |
| 27 DCHECK(settings_manager_); | 27 DCHECK(settings_manager_); |
| 28 settings_manager_->AddObserver(this); | 28 settings_manager_->AddObserver(this); |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 IdToRenderWidgetMap::const_iterator widget_id_it = | 395 IdToRenderWidgetMap::const_iterator widget_id_it = |
| 396 id_to_render_widget->find(render_widget_id); | 396 id_to_render_widget->find(render_widget_id); |
| 397 if (widget_id_it == id_to_render_widget->end()) | 397 if (widget_id_it == id_to_render_widget->end()) |
| 398 return nullptr; | 398 return nullptr; |
| 399 | 399 |
| 400 return widget_id_it->second; | 400 return widget_id_it->second; |
| 401 } | 401 } |
| 402 | 402 |
| 403 } // namespace engine | 403 } // namespace engine |
| 404 } // namespace blimp | 404 } // namespace blimp |
| OLD | NEW |