Chromium Code Reviews| 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 #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 22 matching lines...) Expand all Loading... | |
| 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/display/display_observer.h" | 40 #include "ui/display/display_observer.h" |
| 41 | 41 |
| 42 namespace content { | 42 namespace content { |
| 43 class RenderWidgetHost; | |
| 43 class RenderWidgetHostImpl; | 44 class RenderWidgetHostImpl; |
| 44 class RenderWidgetHostViewMac; | 45 class RenderWidgetHostViewMac; |
| 45 class RenderWidgetHostViewMacEditCommandHelper; | 46 class RenderWidgetHostViewMacEditCommandHelper; |
| 46 class WebContents; | 47 class WebContents; |
| 47 struct TextInputState; | 48 struct TextInputState; |
| 48 } | 49 } |
| 49 | 50 |
| 50 namespace ui { | 51 namespace ui { |
| 51 class Compositor; | 52 class Compositor; |
| 52 class Layer; | 53 class Layer; |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 467 | 468 |
| 468 // Helper method to obtain ui::TextInputType for the active widget from the | 469 // Helper method to obtain ui::TextInputType for the active widget from the |
| 469 // TextInputManager. | 470 // TextInputManager. |
| 470 ui::TextInputType GetTextInputType(); | 471 ui::TextInputType GetTextInputType(); |
| 471 | 472 |
| 472 // Helper method to obtain the currently active widget from TextInputManager. | 473 // Helper method to obtain the currently active widget from TextInputManager. |
| 473 // An active widget is a RenderWidget which is currently focused and has a | 474 // An active widget is a RenderWidget which is currently focused and has a |
| 474 // |TextInputState.type| which is not ui::TEXT_INPUT_TYPE_NONE. | 475 // |TextInputState.type| which is not ui::TEXT_INPUT_TYPE_NONE. |
| 475 RenderWidgetHostImpl* GetActiveWidget(); | 476 RenderWidgetHostImpl* GetActiveWidget(); |
| 476 | 477 |
| 478 // Returns the RenderWidgetHost returned form hit testing at the given point | |
|
Charlie Reis
2016/08/31 22:50:03
s/form/from/?
EhsanK
2016/09/01 21:58:36
Done.
| |
| 479 // of the |root_view|. This is used for TextInputClientMac communication with | |
| 480 // the right RenderWidgetHost. | |
| 481 RenderWidgetHost* GetRenderWidgetHostAtPoint(const gfx::Point& point, | |
| 482 gfx::Point* transformed_point); | |
| 483 | |
| 477 private: | 484 private: |
| 478 friend class RenderWidgetHostViewMacTest; | 485 friend class RenderWidgetHostViewMacTest; |
| 479 | 486 |
| 480 // Returns whether this render view is a popup (autocomplete window). | 487 // Returns whether this render view is a popup (autocomplete window). |
| 481 bool IsPopup() const; | 488 bool IsPopup() const; |
| 482 | 489 |
| 483 // Shuts down the render_widget_host_. This is a separate function so we can | 490 // Shuts down the render_widget_host_. This is a separate function so we can |
| 484 // invoke it from the message loop. | 491 // invoke it from the message loop. |
| 485 void ShutdownHost(); | 492 void ShutdownHost(); |
| 486 | 493 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 540 | 547 |
| 541 // Factory used to safely scope delayed calls to ShutdownHost(). | 548 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 542 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 549 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 543 | 550 |
| 544 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 551 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 545 }; | 552 }; |
| 546 | 553 |
| 547 } // namespace content | 554 } // namespace content |
| 548 | 555 |
| 549 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 556 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |