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/render_view_impl.h" | 9 #include "content/renderer/render_view_impl.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h" | 10 #include "third_party/WebKit/public/platform/WebPoint.h" |
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 11 #include "third_party/WebKit/public/platform/WebRect.h" |
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 12 #include "third_party/WebKit/public/platform/WebString.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/mac/WebSubstringUtil.
h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/mac/WebSubstringUtil.
h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
16 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 TextInputClientObserver::TextInputClientObserver(RenderViewImpl* render_view) | 20 TextInputClientObserver::TextInputClientObserver(RenderViewImpl* render_view) |
21 : RenderViewObserver(render_view), | 21 : RenderViewObserver(render_view), |
22 render_view_impl_(render_view) { | 22 render_view_impl_(render_view) { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 scoped_ptr<const mac::AttributedStringCoder::EncodedString> encoded( | 68 scoped_ptr<const mac::AttributedStringCoder::EncodedString> encoded( |
69 mac::AttributedStringCoder::Encode(string)); | 69 mac::AttributedStringCoder::Encode(string)); |
70 Send(new TextInputClientReplyMsg_GotStringForRange(routing_id(), | 70 Send(new TextInputClientReplyMsg_GotStringForRange(routing_id(), |
71 *encoded.get())); | 71 *encoded.get())); |
72 #else | 72 #else |
73 NOTIMPLEMENTED(); | 73 NOTIMPLEMENTED(); |
74 #endif | 74 #endif |
75 } | 75 } |
76 | 76 |
77 } // namespace content | 77 } // namespace content |
OLD | NEW |