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

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

Issue 1889313002: Revert of Browser Side Text Input State Tracking for OOPIF (Manual). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <IOSurface/IOSurface.h> 9 #include <IOSurface/IOSurface.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 21 matching lines...) Expand all
32 #include "content/common/edit_command.h" 32 #include "content/common/edit_command.h"
33 #include "ipc/ipc_sender.h" 33 #include "ipc/ipc_sender.h"
34 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" 34 #include "third_party/WebKit/public/web/WebCompositionUnderline.h"
35 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h" 35 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h"
36 #include "ui/accelerated_widget_mac/display_link_mac.h" 36 #include "ui/accelerated_widget_mac/display_link_mac.h"
37 #import "ui/base/cocoa/command_dispatcher.h" 37 #import "ui/base/cocoa/command_dispatcher.h"
38 #include "ui/base/cocoa/remote_layer_api.h" 38 #include "ui/base/cocoa/remote_layer_api.h"
39 #import "ui/base/cocoa/tool_tip_base_view.h" 39 #import "ui/base/cocoa/tool_tip_base_view.h"
40 #include "ui/gfx/display_observer.h" 40 #include "ui/gfx/display_observer.h"
41 41
42 struct ViewHostMsg_TextInputState_Params;
43
42 namespace content { 44 namespace content {
43 class RenderWidgetHostImpl; 45 class RenderWidgetHostImpl;
44 class RenderWidgetHostViewMac; 46 class RenderWidgetHostViewMac;
45 class RenderWidgetHostViewMacEditCommandHelper; 47 class RenderWidgetHostViewMacEditCommandHelper;
46 class WebContents; 48 class WebContents;
47 } 49 }
48 50
49 namespace ui { 51 namespace ui {
50 class Compositor; 52 class Compositor;
51 class Layer; 53 class Layer;
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 void StopSpeaking() override; 278 void StopSpeaking() override;
277 void SetBackgroundColor(SkColor color) override; 279 void SetBackgroundColor(SkColor color) override;
278 280
279 // Implementation of RenderWidgetHostViewBase. 281 // Implementation of RenderWidgetHostViewBase.
280 void InitAsPopup(RenderWidgetHostView* parent_host_view, 282 void InitAsPopup(RenderWidgetHostView* parent_host_view,
281 const gfx::Rect& pos) override; 283 const gfx::Rect& pos) override;
282 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; 284 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override;
283 void Focus() override; 285 void Focus() override;
284 void UpdateCursor(const WebCursor& cursor) override; 286 void UpdateCursor(const WebCursor& cursor) override;
285 void SetIsLoading(bool is_loading) override; 287 void SetIsLoading(bool is_loading) override;
286 void UpdateInputMethodIfNecessary(bool text_input_state_changed) override; 288 void TextInputStateChanged(
289 const ViewHostMsg_TextInputState_Params& params) override;
287 void ImeCancelComposition() override; 290 void ImeCancelComposition() override;
288 void ImeCompositionRangeChanged( 291 void ImeCompositionRangeChanged(
289 const gfx::Range& range, 292 const gfx::Range& range,
290 const std::vector<gfx::Rect>& character_bounds) override; 293 const std::vector<gfx::Rect>& character_bounds) override;
291 void RenderProcessGone(base::TerminationStatus status, 294 void RenderProcessGone(base::TerminationStatus status,
292 int error_code) override; 295 int error_code) override;
293 void Destroy() override; 296 void Destroy() override;
294 void SetTooltipText(const base::string16& tooltip_text) override; 297 void SetTooltipText(const base::string16& tooltip_text) override;
295 void SelectionChanged(const base::string16& text, 298 void SelectionChanged(const base::string16& text,
296 size_t offset, 299 size_t offset,
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 604
602 // Factory used to safely scope delayed calls to ShutdownHost(). 605 // Factory used to safely scope delayed calls to ShutdownHost().
603 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 606 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
604 607
605 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 608 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
606 }; 609 };
607 610
608 } // namespace content 611 } // namespace content
609 612
610 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 613 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698