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

Side by Side Diff: content/browser/frame_host/input/legacy_ipc_frame_input_handler.h

Issue 2884243003: Add a mojo channel for frame messages. (Closed)
Patch Set: Fix presubmit warning I ignored Created 3 years, 6 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
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_FRAME_HOST_INPUT_LEGACY_IPC_FRAME_INPUT_HANDLER_H_
6 #define CONTENT_BROWSER_FRAME_HOST_INPUT_LEGACY_IPC_FRAME_INPUT_HANDLER_H_
7
8 #include "content/browser/frame_host/render_frame_host_impl.h"
9 #include "content/browser/renderer_host/input/input_router_impl.h"
10 #include "content/common/input/input_handler.mojom.h"
11
12 namespace content {
13
14 // An instance of a mojom::FrameInputHandler based on chrome IPC.
15 // This class is a temporary class to allow the input messages to
16 // remain as Chrome IPC messages but progressively work at moving
17 // them to mojo.
18 class CONTENT_EXPORT LegacyIPCFrameInputHandler
19 : public mojom::FrameInputHandler {
20 public:
21 LegacyIPCFrameInputHandler(RenderFrameHostImpl* frame_host, int routing_id);
22 ~LegacyIPCFrameInputHandler() override;
23
24 void SetCompositionFromExistingText(
25 int32_t start,
26 int32_t end,
27 const std::vector<ui::CompositionUnderline>& underlines) override;
28 void ExtendSelectionAndDelete(int32_t before, int32_t after) override;
29 void DeleteSurroundingText(int32_t before, int32_t after) override;
30 void DeleteSurroundingTextInCodePoints(int32_t before,
31 int32_t after) override;
32 void SetEditableSelectionOffsets(int32_t start, int32_t end) override;
33 void ExecuteEditCommand(const std::string& command,
34 const base::Optional<base::string16>& value) override;
35 void Undo() override;
36 void Redo() override;
37 void Cut() override;
38 void Copy() override;
39 void CopyToFindPboard() override;
40 void Paste() override;
41 void PasteAndMatchStyle() override;
42 void Replace(const base::string16& word) override;
43 void ReplaceMisspelling(const base::string16& word) override;
44 void Delete() override;
45 void SelectAll() override;
46 void CollapseSelection() override;
47 void SelectRange(const gfx::Point& base, const gfx::Point& extent) override;
48 void AdjustSelectionByCharacterOffset(int32_t start, int32_t end) override;
49 void MoveRangeSelectionExtent(const gfx::Point& extent) override;
50
51 private:
52 void SendInput(std::unique_ptr<IPC::Message> message);
53
54 RenderFrameHostImpl* frame_host_;
55 int routing_id_;
56
57 DISALLOW_COPY_AND_ASSIGN(LegacyIPCFrameInputHandler);
58 };
59
60 } // namespace content
61
62 #endif // CONTENT_BROWSER_FRAME_HOST_INPUT_LEGACY_IPC_FRAME_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/input/OWNERS ('k') | content/browser/frame_host/input/legacy_ipc_frame_input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698