| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // the page is shutting down, but will be valid at all other times. | 147 // the page is shutting down, but will be valid at all other times. |
| 148 Page* page() const | 148 Page* page() const |
| 149 { | 149 { |
| 150 return m_page.get(); | 150 return m_page.get(); |
| 151 } | 151 } |
| 152 | 152 |
| 153 // Returns the main frame associated with this view. This may be null when | 153 // Returns the main frame associated with this view. This may be null when |
| 154 // the page is shutting down, but will be valid at all other times. | 154 // the page is shutting down, but will be valid at all other times. |
| 155 WebLocalFrameImpl* mainFrameImpl(); | 155 WebLocalFrameImpl* mainFrameImpl(); |
| 156 | 156 |
| 157 // Event related methods: | |
| 158 void mouseDoubleClick(const WebMouseEvent&); | |
| 159 | |
| 160 // Notifies the WebView that a load has been committed. isNewNavigation | 157 // Notifies the WebView that a load has been committed. isNewNavigation |
| 161 // will be true if a new session history item should be created for that | 158 // will be true if a new session history item should be created for that |
| 162 // load. isNavigationWithinPage will be true if the navigation does | 159 // load. isNavigationWithinPage will be true if the navigation does |
| 163 // not take the user away from the current page. | 160 // not take the user away from the current page. |
| 164 void didCommitLoad(bool isNewNavigation, bool isNavigationWithinPage); | 161 void didCommitLoad(bool isNewNavigation, bool isNavigationWithinPage); |
| 165 | 162 |
| 166 // Indicates two things: | 163 // Indicates two things: |
| 167 // 1) This view may have a new layout now. | 164 // 1) This view may have a new layout now. |
| 168 // 2) Calling layout() is a no-op. | 165 // 2) Calling layout() is a no-op. |
| 169 // After calling WebWidget::layout(), expect to get this notification | 166 // After calling WebWidget::layout(), expect to get this notification |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 // Converts |pos| from window coordinates to contents coordinates and gets | 233 // Converts |pos| from window coordinates to contents coordinates and gets |
| 237 // the HitTestResult for it. | 234 // the HitTestResult for it. |
| 238 HitTestResult hitTestResultForWindowPos(const IntPoint&); | 235 HitTestResult hitTestResultForWindowPos(const IntPoint&); |
| 239 | 236 |
| 240 void doComposite(); | 237 void doComposite(); |
| 241 void reallocateRenderer(); | 238 void reallocateRenderer(); |
| 242 | 239 |
| 243 bool handleCharEvent(const WebKeyboardEvent&); | 240 bool handleCharEvent(const WebKeyboardEvent&); |
| 244 bool handleGestureEvent(const WebGestureEvent&); | 241 bool handleGestureEvent(const WebGestureEvent&); |
| 245 bool handleKeyEvent(const WebKeyboardEvent&); | 242 bool handleKeyEvent(const WebKeyboardEvent&); |
| 246 bool handleMouseWheel(LocalFrame&, const WebMouseWheelEvent&); | |
| 247 bool handleTouchEvent(LocalFrame& mainFrame, const WebTouchEvent& event); | 243 bool handleTouchEvent(LocalFrame& mainFrame, const WebTouchEvent& event); |
| 248 void handleMouseDown(LocalFrame&, const WebMouseEvent&); | |
| 249 void handleMouseLeave(LocalFrame&, const WebMouseEvent&); | |
| 250 void handleMouseMove(LocalFrame& mainFrame, const WebMouseEvent& event); | |
| 251 void handleMouseUp(LocalFrame&, const WebMouseEvent&); | |
| 252 | 244 |
| 253 InputMethodContext* inputMethodContext(); | 245 InputMethodContext* inputMethodContext(); |
| 254 | 246 |
| 255 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) | 247 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) |
| 256 WebSpellCheckClient* m_spellCheckClient; | 248 WebSpellCheckClient* m_spellCheckClient; |
| 257 | 249 |
| 258 ChromeClientImpl m_chromeClientImpl; | 250 ChromeClientImpl m_chromeClientImpl; |
| 259 EditorClientImpl m_editorClientImpl; | 251 EditorClientImpl m_editorClientImpl; |
| 260 SpellCheckerClientImpl m_spellCheckerClientImpl; | 252 SpellCheckerClientImpl m_spellCheckerClientImpl; |
| 261 | 253 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 WebColor m_backgroundColorOverride; | 298 WebColor m_backgroundColorOverride; |
| 307 }; | 299 }; |
| 308 | 300 |
| 309 // We have no ways to check if the specified WebView is an instance of | 301 // We have no ways to check if the specified WebView is an instance of |
| 310 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 302 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 311 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 303 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 312 | 304 |
| 313 } // namespace blink | 305 } // namespace blink |
| 314 | 306 |
| 315 #endif // SKY_ENGINE_WEB_WEBVIEWIMPL_H_ | 307 #endif // SKY_ENGINE_WEB_WEBVIEWIMPL_H_ |
| OLD | NEW |