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

Side by Side Diff: content/renderer/text_input_client_observer.h

Issue 8220006: Rename RenderView to RenderViewImpl. Update Chrome's DEPS so that it can't include the RenderView... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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_RENDERER_TEXT_INPUT_CLIENT_OBSERVER_H_ 5 #ifndef CONTENT_RENDERER_TEXT_INPUT_CLIENT_OBSERVER_H_
6 #define CONTENT_RENDERER_TEXT_INPUT_CLIENT_OBSERVER_H_ 6 #define CONTENT_RENDERER_TEXT_INPUT_CLIENT_OBSERVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/public/renderer/render_view_observer.h" 10 #include "content/public/renderer/render_view_observer.h"
11 #include "ui/base/range/range.h" 11 #include "ui/base/range/range.h"
12 #include "ui/gfx/point.h" 12 #include "ui/gfx/point.h"
13 13
14 class RenderViewImpl;
15
14 namespace WebKit { 16 namespace WebKit {
15 class WebView; 17 class WebView;
16 } 18 }
17 19
18 // This is the renderer-side message filter that generates the replies for the 20 // This is the renderer-side message filter that generates the replies for the
19 // messages sent by the TextInputClientMac. See 21 // messages sent by the TextInputClientMac. See
20 // content/browser/renderer_host/text_input_client_mac.h for more information. 22 // content/browser/renderer_host/text_input_client_mac.h for more information.
21 class TextInputClientObserver : public content::RenderViewObserver { 23 class TextInputClientObserver : public content::RenderViewObserver {
22 public: 24 public:
23 explicit TextInputClientObserver(RenderView* render_view); 25 explicit TextInputClientObserver(RenderViewImpl* render_view);
24 virtual ~TextInputClientObserver(); 26 virtual ~TextInputClientObserver();
25 27
26 // RenderViewObserver overrides: 28 // RenderViewObserver overrides:
27 virtual bool OnMessageReceived(const IPC::Message& message); 29 virtual bool OnMessageReceived(const IPC::Message& message);
28 30
29 private: 31 private:
30 // Returns the WebView of the RenderView. 32 // Returns the WebView of the RenderView.
31 WebKit::WebView* webview(); 33 WebKit::WebView* webview();
32 34
33 // IPC Message handlers: 35 // IPC Message handlers:
34 void OnCharacterIndexForPoint(gfx::Point point); 36 void OnCharacterIndexForPoint(gfx::Point point);
35 void OnFirstRectForCharacterRange(ui::Range range); 37 void OnFirstRectForCharacterRange(ui::Range range);
36 void OnStringForRange(ui::Range range); 38 void OnStringForRange(ui::Range range);
37 39
38 DISALLOW_COPY_AND_ASSIGN(TextInputClientObserver); 40 DISALLOW_COPY_AND_ASSIGN(TextInputClientObserver);
39 }; 41 };
40 42
41 #endif // CONTENT_RENDERER_TEXT_INPUT_CLIENT_OBSERVER_H_ 43 #endif // CONTENT_RENDERER_TEXT_INPUT_CLIENT_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/renderer/speech_input_dispatcher.cc ('k') | content/renderer/text_input_client_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698