Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(605)

Side by Side Diff: blimp/engine/feature/engine_render_widget_feature_unittest.cc

Issue 2323983003: DO NOT SUBMIT: Bundle IME-related messages into one for batch edit (Closed)
Patch Set: fixed nits and fixed blimp test Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 void AddKeyPressEventCallback( 93 void AddKeyPressEventCallback(
94 const KeyPressEventCallback& callback) override {} 94 const KeyPressEventCallback& callback) override {}
95 void RemoveKeyPressEventCallback( 95 void RemoveKeyPressEventCallback(
96 const KeyPressEventCallback& callback) override {} 96 const KeyPressEventCallback& callback) override {}
97 void AddMouseEventCallback(const MouseEventCallback& callback) override {} 97 void AddMouseEventCallback(const MouseEventCallback& callback) override {}
98 void RemoveMouseEventCallback(const MouseEventCallback& callback) override {} 98 void RemoveMouseEventCallback(const MouseEventCallback& callback) override {}
99 void AddInputEventObserver(InputEventObserver* observer) override {} 99 void AddInputEventObserver(InputEventObserver* observer) override {}
100 void RemoveInputEventObserver(InputEventObserver* observer) override {} 100 void RemoveInputEventObserver(InputEventObserver* observer) override {}
101 void GetScreenInfo(content::ScreenInfo* result) override {} 101 void GetScreenInfo(content::ScreenInfo* result) override {}
102 void HandleCompositorProto(const std::vector<uint8_t>& proto) override {} 102 void HandleCompositorProto(const std::vector<uint8_t>& proto) override {}
103 void SendOrBatch(IPC::Message* msg) override {}
103 104
104 bool Send(IPC::Message* msg) override { return false; } 105 bool Send(IPC::Message* msg) override { return false; }
105 }; 106 };
106 107
107 class MockTextInputClient : public ui::DummyTextInputClient { 108 class MockTextInputClient : public ui::DummyTextInputClient {
108 public: 109 public:
109 MockTextInputClient() : DummyTextInputClient(ui::TEXT_INPUT_TYPE_TEXT) {} 110 MockTextInputClient() : DummyTextInputClient(ui::TEXT_INPUT_TYPE_TEXT) {}
110 111
111 bool GetTextFromRange(const gfx::Range& range, 112 bool GetTextFromRange(const gfx::Range& range,
112 base::string16* text) const override { 113 base::string16* text) const override {
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 336
336 feature_.OnRenderWidgetCreated(1, &render_widget_host1_); 337 feature_.OnRenderWidgetCreated(1, &render_widget_host1_);
337 feature_.OnRenderWidgetCreated(2, &render_widget_host2_); 338 feature_.OnRenderWidgetCreated(2, &render_widget_host2_);
338 feature_.OnRenderWidgetInitialized(1, &render_widget_host1_); 339 feature_.OnRenderWidgetInitialized(1, &render_widget_host1_);
339 feature_.OnRenderWidgetDeleted(2, &render_widget_host2_); 340 feature_.OnRenderWidgetDeleted(2, &render_widget_host2_);
340 feature_.SendCompositorMessage(1, &render_widget_host1_, payload); 341 feature_.SendCompositorMessage(1, &render_widget_host1_, payload);
341 } 342 }
342 343
343 } // namespace engine 344 } // namespace engine
344 } // namespace blimp 345 } // namespace blimp
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698