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 #include "content/renderer/text_input_client_observer.h" | 5 #include "content/renderer/text_input_client_observer.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "build/build_config.h" |
8 #include "content/common/text_input_client_messages.h" | 11 #include "content/common/text_input_client_messages.h" |
9 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" | 12 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
10 #include "content/renderer/render_view_impl.h" | 13 #include "content/renderer/render_view_impl.h" |
11 #include "third_party/WebKit/public/platform/WebPoint.h" | 14 #include "third_party/WebKit/public/platform/WebPoint.h" |
12 #include "third_party/WebKit/public/platform/WebRect.h" | 15 #include "third_party/WebKit/public/platform/WebRect.h" |
13 #include "third_party/WebKit/public/platform/WebString.h" | 16 #include "third_party/WebKit/public/platform/WebString.h" |
14 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 17 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
15 #include "third_party/WebKit/public/web/WebView.h" | 18 #include "third_party/WebKit/public/web/WebView.h" |
16 #include "third_party/WebKit/public/web/mac/WebSubstringUtil.h" | 19 #include "third_party/WebKit/public/web/mac/WebSubstringUtil.h" |
17 #include "ui/gfx/geometry/rect.h" | 20 #include "ui/gfx/geometry/rect.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 scoped_ptr<const mac::AttributedStringCoder::EncodedString> encoded( | 101 scoped_ptr<const mac::AttributedStringCoder::EncodedString> encoded( |
99 mac::AttributedStringCoder::Encode(string)); | 102 mac::AttributedStringCoder::Encode(string)); |
100 Send(new TextInputClientReplyMsg_GotStringForRange(routing_id(), | 103 Send(new TextInputClientReplyMsg_GotStringForRange(routing_id(), |
101 *encoded.get(), baselinePoint)); | 104 *encoded.get(), baselinePoint)); |
102 #else | 105 #else |
103 NOTIMPLEMENTED(); | 106 NOTIMPLEMENTED(); |
104 #endif | 107 #endif |
105 } | 108 } |
106 | 109 |
107 } // namespace content | 110 } // namespace content |
OLD | NEW |