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 "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "content/common/text_input_client_messages.h" | 8 #include "content/common/text_input_client_messages.h" |
9 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" | 9 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
10 #include "content/renderer/render_view_impl.h" | 10 #include "content/renderer/render_view_impl.h" |
11 #include "third_party/WebKit/public/platform/WebPoint.h" | 11 #include "third_party/WebKit/public/platform/WebPoint.h" |
12 #include "third_party/WebKit/public/platform/WebRect.h" | 12 #include "third_party/WebKit/public/platform/WebRect.h" |
13 #include "third_party/WebKit/public/platform/WebString.h" | 13 #include "third_party/WebKit/public/platform/WebString.h" |
14 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 14 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
15 #include "third_party/WebKit/public/web/WebView.h" | 15 #include "third_party/WebKit/public/web/WebView.h" |
16 #include "third_party/WebKit/public/web/mac/WebSubstringUtil.h" | 16 #include "third_party/WebKit/public/web/mac/WebSubstringUtil.h" |
17 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 TextInputClientObserver::TextInputClientObserver(RenderViewImpl* render_view) | 21 TextInputClientObserver::TextInputClientObserver(RenderViewImpl* render_view) |
22 : RenderViewObserver(render_view), | 22 : RenderViewObserver(render_view), |
23 render_view_impl_(render_view) { | 23 render_view_impl_(render_view) { |
24 } | 24 } |
25 | 25 |
26 TextInputClientObserver::~TextInputClientObserver() { | 26 TextInputClientObserver::~TextInputClientObserver() { |
27 } | 27 } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 scoped_ptr<const mac::AttributedStringCoder::EncodedString> encoded( | 97 scoped_ptr<const mac::AttributedStringCoder::EncodedString> encoded( |
98 mac::AttributedStringCoder::Encode(string)); | 98 mac::AttributedStringCoder::Encode(string)); |
99 Send(new TextInputClientReplyMsg_GotStringForRange(routing_id(), | 99 Send(new TextInputClientReplyMsg_GotStringForRange(routing_id(), |
100 *encoded.get())); | 100 *encoded.get())); |
101 #else | 101 #else |
102 NOTIMPLEMENTED(); | 102 NOTIMPLEMENTED(); |
103 #endif | 103 #endif |
104 } | 104 } |
105 | 105 |
106 } // namespace content | 106 } // namespace content |
OLD | NEW |