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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.h

Issue 173803002: Redesigns the text input focus handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added an unittest and thread checker. Created 6 years, 8 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) 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #if defined(OS_MACOSX) 8 #if defined(OS_MACOSX)
9 #include <OpenGL/OpenGL.h> 9 #include <OpenGL/OpenGL.h>
10 #endif 10 #endif
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // RenderWidgetHostViewPort implementation. 48 // RenderWidgetHostViewPort implementation.
49 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 49 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
50 virtual void SelectionChanged(const base::string16& text, 50 virtual void SelectionChanged(const base::string16& text,
51 size_t offset, 51 size_t offset,
52 const gfx::Range& range) OVERRIDE; 52 const gfx::Range& range) OVERRIDE;
53 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 53 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
54 virtual const SkBitmap& GetBackground() OVERRIDE; 54 virtual const SkBitmap& GetBackground() OVERRIDE;
55 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE; 55 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE;
56 virtual float GetOverdrawBottomHeight() const OVERRIDE; 56 virtual float GetOverdrawBottomHeight() const OVERRIDE;
57 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE;
57 virtual bool IsShowingContextMenu() const OVERRIDE; 58 virtual bool IsShowingContextMenu() const OVERRIDE;
58 virtual void SetShowingContextMenu(bool showing_menu) OVERRIDE; 59 virtual void SetShowingContextMenu(bool showing_menu) OVERRIDE;
59 virtual base::string16 GetSelectedText() const OVERRIDE; 60 virtual base::string16 GetSelectedText() const OVERRIDE;
60 virtual bool IsMouseLocked() OVERRIDE; 61 virtual bool IsMouseLocked() OVERRIDE;
61 virtual void UnhandledWheelEvent( 62 virtual void UnhandledWheelEvent(
62 const blink::WebMouseWheelEvent& event) OVERRIDE; 63 const blink::WebMouseWheelEvent& event) OVERRIDE;
63 virtual InputEventAckState FilterInputEvent( 64 virtual InputEventAckState FilterInputEvent(
64 const blink::WebInputEvent& input_event) OVERRIDE; 65 const blink::WebInputEvent& input_event) OVERRIDE;
65 virtual void OnSetNeedsFlushInput() OVERRIDE; 66 virtual void OnSetNeedsFlushInput() OVERRIDE;
66 virtual void OnDidFlushInput() OVERRIDE; 67 virtual void OnDidFlushInput() OVERRIDE;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 uint32 renderer_frame_number_; 176 uint32 renderer_frame_number_;
176 177
177 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; 178 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_;
178 179
179 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 180 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
180 }; 181 };
181 182
182 } // namespace content 183 } // namespace content
183 184
184 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 185 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698