OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "wtf/HashSet.h" | 45 #include "wtf/HashSet.h" |
46 | 46 |
47 namespace blink { | 47 namespace blink { |
48 class Frame; | 48 class Frame; |
49 class Element; | 49 class Element; |
50 class LocalFrame; | 50 class LocalFrame; |
51 class Page; | 51 class Page; |
52 class PaintLayerCompositor; | 52 class PaintLayerCompositor; |
53 class UserGestureToken; | 53 class UserGestureToken; |
54 class CompositorAnimationTimeline; | 54 class CompositorAnimationTimeline; |
| 55 class WebInputMethodControllerImpl; |
55 class WebLayer; | 56 class WebLayer; |
56 class WebLayerTreeView; | 57 class WebLayerTreeView; |
57 class WebMouseEvent; | 58 class WebMouseEvent; |
58 class WebMouseWheelEvent; | 59 class WebMouseWheelEvent; |
59 class WebFrameWidgetImpl; | 60 class WebFrameWidgetImpl; |
60 | 61 |
61 using WebFrameWidgetsSet = PersistentHeapHashSet<WeakMember<WebFrameWidgetImpl>>
; | 62 using WebFrameWidgetsSet = PersistentHeapHashSet<WeakMember<WebFrameWidgetImpl>>
; |
62 | 63 |
63 class WebFrameWidgetImpl final : public GarbageCollectedFinalized<WebFrameWidget
Impl> | 64 class WebFrameWidgetImpl final : public GarbageCollectedFinalized<WebFrameWidget
Impl> |
64 , public WebFrameWidgetBase | 65 , public WebFrameWidgetBase |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 void didLosePointerLock() override; | 118 void didLosePointerLock() override; |
118 bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) override; | 119 bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) override; |
119 void applyReplacementRange(const WebRange&) override; | 120 void applyReplacementRange(const WebRange&) override; |
120 | 121 |
121 // WebFrameWidget implementation. | 122 // WebFrameWidget implementation. |
122 WebLocalFrameImpl* localRoot() override { return m_localRoot; } | 123 WebLocalFrameImpl* localRoot() override { return m_localRoot; } |
123 void setVisibilityState(WebPageVisibilityState) override; | 124 void setVisibilityState(WebPageVisibilityState) override; |
124 bool isTransparent() const override; | 125 bool isTransparent() const override; |
125 void setIsTransparent(bool) override; | 126 void setIsTransparent(bool) override; |
126 void setBaseBackgroundColor(WebColor) override; | 127 void setBaseBackgroundColor(WebColor) override; |
| 128 WebInputMethodControllerImpl* getActiveWebInputMethodController() const; |
127 | 129 |
128 Frame* focusedCoreFrame() const; | 130 Frame* focusedCoreFrame() const; |
129 | 131 |
130 // Returns the currently focused Element or null if no element has focus. | 132 // Returns the currently focused Element or null if no element has focus. |
131 Element* focusedElement() const; | 133 Element* focusedElement() const; |
132 | 134 |
133 PaintLayerCompositor* compositor() const; | 135 PaintLayerCompositor* compositor() const; |
134 | 136 |
135 // WebFrameWidgetBase overrides: | 137 // WebFrameWidgetBase overrides: |
136 bool forSubframe() const override { return true; } | 138 bool forSubframe() const override { return true; } |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 WebColor m_baseBackgroundColor; | 253 WebColor m_baseBackgroundColor; |
252 | 254 |
253 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; | 255 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; |
254 }; | 256 }; |
255 | 257 |
256 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidgetBase, widget, widget->forSub
frame(), widget.forSubframe()); | 258 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidgetBase, widget, widget->forSub
frame(), widget.forSubframe()); |
257 | 259 |
258 } // namespace blink | 260 } // namespace blink |
259 | 261 |
260 #endif | 262 #endif |
OLD | NEW |