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

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: Fix Clang Created 9 years, 7 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/common/attributed_string_coder_mac.h"
9 #include "content/browser/browser_message_filter.h"
10
11 namespace gfx {
12 class Rect;
13 }
14
15 namespace ui {
16 class Range;
17 }
18
19 // This is a browser-side message filter that lives on the IO thread to handle
20 // replies to messages sent by the TextInputClientMac. See
21 // chrome/browser/renderer_host/text_input_client_mac.h for more information.
22 class TextInputClientMessageFilter : public BrowserMessageFilter {
23 public:
24 explicit TextInputClientMessageFilter(int child_id);
25 virtual ~TextInputClientMessageFilter();
26
27 // BrowserMessageFilter override:
28 virtual bool OnMessageReceived(const IPC::Message& message,
29 bool* message_was_ok);
30
31 private:
32 // IPC Message handlers:
33 void OnGotCharacterIndexForPoint(size_t index);
34 void OnGotFirstRectForRange(const gfx::Rect& rect);
35 void OnGotStringFromRange(
36 const mac::AttributedStringCoder::EncodedString& string);
37
38 // Child process id.
39 int child_process_id_;
40
41 DISALLOW_COPY_AND_ASSIGN(TextInputClientMessageFilter);
42 };
43
44 #endif // CHROME_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698