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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 virtual WebRect windowResizerRect() { return WebRect(); } | 110 virtual WebRect windowResizerRect() { return WebRect(); } |
111 | 111 |
112 // Called to get the position of the root window containing the widget | 112 // Called to get the position of the root window containing the widget |
113 // in screen coordinates. | 113 // in screen coordinates. |
114 virtual WebRect rootWindowRect() { return WebRect(); } | 114 virtual WebRect rootWindowRect() { return WebRect(); } |
115 | 115 |
116 // Called to query information about the screen where this widget is | 116 // Called to query information about the screen where this widget is |
117 // displayed. | 117 // displayed. |
118 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); } | 118 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); } |
119 | 119 |
120 // Called to get the scale factor of the display. | |
121 virtual float deviceScaleFactor() { return 1; } | |
122 | |
123 // When this method gets called, WebWidgetClient implementation should | 120 // When this method gets called, WebWidgetClient implementation should |
124 // reset the input method by cancelling any ongoing composition. | 121 // reset the input method by cancelling any ongoing composition. |
125 virtual void resetInputMethod() { } | 122 virtual void resetInputMethod() { } |
126 | 123 |
127 // Requests to lock the mouse cursor. If true is returned, the success | 124 // Requests to lock the mouse cursor. If true is returned, the success |
128 // result will be asynchronously returned via a single call to | 125 // result will be asynchronously returned via a single call to |
129 // WebWidget::didAcquirePointerLock() or | 126 // WebWidget::didAcquirePointerLock() or |
130 // WebWidget::didNotAcquirePointerLock(). | 127 // WebWidget::didNotAcquirePointerLock(). |
131 // If false, the request has been denied synchronously. | 128 // If false, the request has been denied synchronously. |
132 virtual bool requestPointerLock() { return false; } | 129 virtual bool requestPointerLock() { return false; } |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // press or gesture tap. | 175 // press or gesture tap. |
179 // Note: This is called even when the mouse down event is prevent default. | 176 // Note: This is called even when the mouse down event is prevent default. |
180 virtual void onMouseDown(const WebNode& mouseDownNode) { } | 177 virtual void onMouseDown(const WebNode& mouseDownNode) { } |
181 protected: | 178 protected: |
182 ~WebWidgetClient() { } | 179 ~WebWidgetClient() { } |
183 }; | 180 }; |
184 | 181 |
185 } // namespace blink | 182 } // namespace blink |
186 | 183 |
187 #endif | 184 #endif |
OLD | NEW |