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

Side by Side Diff: chrome/browser/renderer_host/text_input_client_message_filter.h

Issue 6289009: [Mac] Implement the system dictionary popup by implementing NSTextInput methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update unit test Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 CHROME_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MESSAGE_FILTER_H_
6 #define CHROME_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MESSAGE_FILTER_H_
7
8 #include "chrome/browser/browser_message_filter.h"
9
10 namespace gfx {
11 class Rect;
12 }
13
14 // This is a browser-side message filter that lives on the IO thread to handle
15 // replies to messages sent by the TextInputClientMac. See
16 // chrome/browser/renderer_host/text_input_client_mac.h for more information.
17 class TextInputClientMessageFilter : public BrowserMessageFilter {
18 public:
19 explicit TextInputClientMessageFilter(int child_id);
20 virtual ~TextInputClientMessageFilter();
21
22 // BrowserMessageFilter override:
23 virtual bool OnMessageReceived(const IPC::Message& message,
24 bool* message_was_ok);
25
26 private:
27 // IPC Message handlers:
28 void OnGotCharacterIndexForPoint(uint index);
29 void OnGotFirstRectForRange(const gfx::Rect& rect);
30 void OnGotStringFromRange(const string16& string);
31 void OnImeCompositionRangeChanged(const IPC::Message& msg,
32 int start,
33 int end);
34
35 // Child process id.
36 int child_process_id_;
37
38 DISALLOW_COPY_AND_ASSIGN(TextInputClientMessageFilter);
39 };
40
41 #endif // CHROME_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698