| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 void sendResizeEventAndRepaint(); | 139 void sendResizeEventAndRepaint(); |
| 140 | 140 |
| 141 void updateMainFrameLayoutSize(); | 141 void updateMainFrameLayoutSize(); |
| 142 | 142 |
| 143 void setIgnoreInputEvents(bool newValue); | 143 void setIgnoreInputEvents(bool newValue); |
| 144 | 144 |
| 145 // Returns the page object associated with this widget. This may be null whe
n | 145 // Returns the page object associated with this widget. This may be null whe
n |
| 146 // the page is shutting down, but will be valid at all other times. | 146 // the page is shutting down, but will be valid at all other times. |
| 147 Page* page() const { return view()->page(); } | 147 Page* page() const { return view()->page(); } |
| 148 | 148 |
| 149 ChromeClientImpl& chromeClient() const { return view()->chromeClient(); } |
| 150 |
| 149 // Event related methods: | 151 // Event related methods: |
| 150 void mouseContextMenu(const WebMouseEvent&); | 152 void mouseContextMenu(const WebMouseEvent&); |
| 151 | 153 |
| 152 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } | 154 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } |
| 153 | 155 |
| 154 // Returns true if the event leads to scrolling. | 156 // Returns true if the event leads to scrolling. |
| 155 static bool mapKeyCodeForScroll( | 157 static bool mapKeyCodeForScroll( |
| 156 int keyCode, | 158 int keyCode, |
| 157 ScrollDirection*, | 159 ScrollDirection*, |
| 158 ScrollGranularity*); | 160 ScrollGranularity*); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 WebColor m_baseBackgroundColor; | 225 WebColor m_baseBackgroundColor; |
| 224 | 226 |
| 225 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; | 227 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; |
| 226 }; | 228 }; |
| 227 | 229 |
| 228 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidget, widget, widget->forSubfram
e(), widget.forSubframe()); | 230 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidget, widget, widget->forSubfram
e(), widget.forSubframe()); |
| 229 | 231 |
| 230 } // namespace blink | 232 } // namespace blink |
| 231 | 233 |
| 232 #endif | 234 #endif |
| OLD | NEW |