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

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

Issue 2034153002: Makes RenderFrameObserver/RenderViewObserver::OnDestruct pure virtual. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 6 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
OLDNEW
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_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/macros.h" 8 #include "base/macros.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"
(...skipping 13 matching lines...) Expand all
24 // content/browser/renderer_host/text_input_client_mac.h for more information. 24 // content/browser/renderer_host/text_input_client_mac.h for more information.
25 class TextInputClientObserver : public RenderViewObserver { 25 class TextInputClientObserver : public RenderViewObserver {
26 public: 26 public:
27 explicit TextInputClientObserver(RenderViewImpl* render_view); 27 explicit TextInputClientObserver(RenderViewImpl* render_view);
28 ~TextInputClientObserver() override; 28 ~TextInputClientObserver() override;
29 29
30 // RenderViewObserver overrides: 30 // RenderViewObserver overrides:
31 bool OnMessageReceived(const IPC::Message& message) override; 31 bool OnMessageReceived(const IPC::Message& message) override;
32 32
33 private: 33 private:
34 // RenderViewObserver implementation.
35 void OnDestruct() override;
36
34 // Returns the WebView of the RenderView. 37 // Returns the WebView of the RenderView.
35 blink::WebView* webview(); 38 blink::WebView* webview();
36 39
37 // IPC Message handlers: 40 // IPC Message handlers:
38 void OnStringAtPoint(gfx::Point point); 41 void OnStringAtPoint(gfx::Point point);
39 void OnCharacterIndexForPoint(gfx::Point point); 42 void OnCharacterIndexForPoint(gfx::Point point);
40 void OnFirstRectForCharacterRange(gfx::Range range); 43 void OnFirstRectForCharacterRange(gfx::Range range);
41 void OnStringForRange(gfx::Range range); 44 void OnStringForRange(gfx::Range range);
42 45
43 #if defined(ENABLE_PLUGINS) 46 #if defined(ENABLE_PLUGINS)
44 RenderViewImpl* const render_view_impl_; 47 RenderViewImpl* const render_view_impl_;
45 #endif 48 #endif
46 49
47 DISALLOW_COPY_AND_ASSIGN(TextInputClientObserver); 50 DISALLOW_COPY_AND_ASSIGN(TextInputClientObserver);
48 }; 51 };
49 52
50 } // namespace content 53 } // namespace content
51 54
52 #endif // CONTENT_RENDERER_TEXT_INPUT_CLIENT_OBSERVER_H_ 55 #endif // CONTENT_RENDERER_TEXT_INPUT_CLIENT_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/renderer/stats_collection_observer.cc ('k') | content/renderer/text_input_client_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698