OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 WTF_MAKE_FAST_ALLOCATED; | 64 WTF_MAKE_FAST_ALLOCATED; |
65 public: | 65 public: |
66 // WebWidget functions: | 66 // WebWidget functions: |
67 virtual void close() OVERRIDE FINAL; | 67 virtual void close() OVERRIDE FINAL; |
68 virtual WebSize size() OVERRIDE FINAL { return m_size; } | 68 virtual WebSize size() OVERRIDE FINAL { return m_size; } |
69 virtual void willStartLiveResize() OVERRIDE FINAL; | 69 virtual void willStartLiveResize() OVERRIDE FINAL; |
70 virtual void resize(const WebSize&) OVERRIDE FINAL; | 70 virtual void resize(const WebSize&) OVERRIDE FINAL; |
71 virtual void willEndLiveResize() OVERRIDE FINAL; | 71 virtual void willEndLiveResize() OVERRIDE FINAL; |
72 virtual void animate(double frameBeginTime) OVERRIDE FINAL; | 72 virtual void animate(double frameBeginTime) OVERRIDE FINAL; |
73 virtual void layout() OVERRIDE FINAL; | 73 virtual void layout() OVERRIDE FINAL; |
74 virtual void enterForceCompositingMode(bool enable) OVERRIDE FINAL; | |
75 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE FINAL; | 74 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE FINAL; |
76 virtual void themeChanged() OVERRIDE FINAL; | 75 virtual void themeChanged() OVERRIDE FINAL; |
77 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE FINAL; | 76 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE FINAL; |
78 virtual void mouseCaptureLost() OVERRIDE FINAL; | 77 virtual void mouseCaptureLost() OVERRIDE FINAL; |
79 virtual void setFocus(bool enable) OVERRIDE FINAL; | 78 virtual void setFocus(bool enable) OVERRIDE FINAL; |
80 virtual bool setComposition( | 79 virtual bool setComposition( |
81 const WebString& text, | 80 const WebString& text, |
82 const WebVector<WebCompositionUnderline>& underlines, | 81 const WebVector<WebCompositionUnderline>& underlines, |
83 int selectionStart, int selectionEnd) OVERRIDE FINAL; | 82 int selectionStart, int selectionEnd) OVERRIDE FINAL; |
84 virtual bool confirmComposition() OVERRIDE FINAL; | 83 virtual bool confirmComposition() OVERRIDE FINAL; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 virtual WebScreenInfo screenInfo() const OVERRIDE FINAL; | 127 virtual WebScreenInfo screenInfo() const OVERRIDE FINAL; |
129 | 128 |
130 // WebCore::FramelessScrollViewClient methods: | 129 // WebCore::FramelessScrollViewClient methods: |
131 virtual void popupClosed(WebCore::FramelessScrollView*) OVERRIDE FINAL; | 130 virtual void popupClosed(WebCore::FramelessScrollView*) OVERRIDE FINAL; |
132 | 131 |
133 WebWidgetClient* m_client; | 132 WebWidgetClient* m_client; |
134 WebSize m_size; | 133 WebSize m_size; |
135 | 134 |
136 WebLayerTreeView* m_layerTreeView; | 135 WebLayerTreeView* m_layerTreeView; |
137 OwnPtr<WebContentLayer> m_rootLayer; | 136 OwnPtr<WebContentLayer> m_rootLayer; |
138 bool m_isAcceleratedCompositingActive; | |
139 | 137 |
140 WebPoint m_lastMousePosition; | 138 WebPoint m_lastMousePosition; |
141 | 139 |
142 // This is a non-owning ref. The popup will notify us via popupClosed() | 140 // This is a non-owning ref. The popup will notify us via popupClosed() |
143 // before it is destroyed. | 141 // before it is destroyed. |
144 WebCore::FramelessScrollView* m_widget; | 142 WebCore::FramelessScrollView* m_widget; |
145 }; | 143 }; |
146 | 144 |
147 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi
dget.isPopupMenu()); | 145 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi
dget.isPopupMenu()); |
148 // WebPopupMenuImpl is the only implementation of FramelessScrollViewClient, so | 146 // WebPopupMenuImpl is the only implementation of FramelessScrollViewClient, so |
149 // no need for further checking. | 147 // no need for further checking. |
150 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebCore::FramelessScrollViewClient, client,
true, true); | 148 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebCore::FramelessScrollViewClient, client,
true, true); |
151 | 149 |
152 } // namespace blink | 150 } // namespace blink |
153 | 151 |
154 #endif | 152 #endif |
OLD | NEW |