OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MESSAGE_FILTER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include "content/common/mac/attributed_string_coder.h" | 8 #include "content/common/mac/attributed_string_coder.h" |
9 #include "content/public/browser/browser_message_filter.h" | 9 #include "content/public/browser/browser_message_filter.h" |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 ~TextInputClientMessageFilter() override; | 31 ~TextInputClientMessageFilter() override; |
32 | 32 |
33 private: | 33 private: |
34 // IPC Message handlers: | 34 // IPC Message handlers: |
35 void OnGotStringAtPoint( | 35 void OnGotStringAtPoint( |
36 const mac::AttributedStringCoder::EncodedString& encoded_string, | 36 const mac::AttributedStringCoder::EncodedString& encoded_string, |
37 const gfx::Point& point); | 37 const gfx::Point& point); |
38 void OnGotCharacterIndexForPoint(size_t index); | 38 void OnGotCharacterIndexForPoint(size_t index); |
39 void OnGotFirstRectForRange(const gfx::Rect& rect); | 39 void OnGotFirstRectForRange(const gfx::Rect& rect); |
40 void OnGotStringFromRange( | 40 void OnGotStringFromRange( |
41 const mac::AttributedStringCoder::EncodedString& string); | 41 const mac::AttributedStringCoder::EncodedString& string, |
| 42 const gfx::Point& point); |
42 | 43 |
43 // Child process id. | 44 // Child process id. |
44 int child_process_id_; | 45 int child_process_id_; |
45 | 46 |
46 DISALLOW_COPY_AND_ASSIGN(TextInputClientMessageFilter); | 47 DISALLOW_COPY_AND_ASSIGN(TextInputClientMessageFilter); |
47 }; | 48 }; |
48 | 49 |
49 } // namespace content | 50 } // namespace content |
50 | 51 |
51 #endif // CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MESSAGE_FILTER_H_ | 52 #endif // CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MESSAGE_FILTER_H_ |
OLD | NEW |