| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ | 5 #ifndef UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ |
| 6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ | 6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/public/browser/web_contents_delegate.h" | 10 #include "content/public/browser/web_contents_delegate.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 virtual bool IsFocusable() const OVERRIDE; | 91 virtual bool IsFocusable() const OVERRIDE; |
| 92 virtual void OnFocus() OVERRIDE; | 92 virtual void OnFocus() OVERRIDE; |
| 93 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; | 93 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; |
| 94 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 94 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 95 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; | 95 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
| 96 virtual gfx::Size GetPreferredSize() OVERRIDE; | 96 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 97 | 97 |
| 98 // Overridden from content::WebContentsDelegate: | 98 // Overridden from content::WebContentsDelegate: |
| 99 virtual void WebContentsFocused(content::WebContents* web_contents) OVERRIDE; | 99 virtual void WebContentsFocused(content::WebContents* web_contents) OVERRIDE; |
| 100 virtual bool EmbedsFullscreenWidget() const OVERRIDE; | 100 virtual bool EmbedsFullscreenWidget() const OVERRIDE; |
| 101 virtual bool PreHandleGestureEvent( |
| 102 content::WebContents* source, |
| 103 const blink::WebGestureEvent& event) OVERRIDE; |
| 101 | 104 |
| 102 // Overridden from content::WebContentsObserver: | 105 // Overridden from content::WebContentsObserver: |
| 103 virtual void RenderViewHostChanged( | 106 virtual void RenderViewHostChanged( |
| 104 content::RenderViewHost* old_host, | 107 content::RenderViewHost* old_host, |
| 105 content::RenderViewHost* new_host) OVERRIDE; | 108 content::RenderViewHost* new_host) OVERRIDE; |
| 106 virtual void WebContentsDestroyed( | 109 virtual void WebContentsDestroyed( |
| 107 content::WebContents* web_contents) OVERRIDE; | 110 content::WebContents* web_contents) OVERRIDE; |
| 108 virtual void DidShowFullscreenWidget(int routing_id) OVERRIDE; | 111 virtual void DidShowFullscreenWidget(int routing_id) OVERRIDE; |
| 109 virtual void DidDestroyFullscreenWidget(int routing_id) OVERRIDE; | 112 virtual void DidDestroyFullscreenWidget(int routing_id) OVERRIDE; |
| 110 // Workaround for MSVC++ linker bug/feature that requires | 113 // Workaround for MSVC++ linker bug/feature that requires |
| (...skipping 21 matching lines...) Expand all Loading... |
| 132 content::BrowserContext* browser_context_; | 135 content::BrowserContext* browser_context_; |
| 133 bool allow_accelerators_; | 136 bool allow_accelerators_; |
| 134 gfx::Size preferred_size_; | 137 gfx::Size preferred_size_; |
| 135 | 138 |
| 136 DISALLOW_COPY_AND_ASSIGN(WebView); | 139 DISALLOW_COPY_AND_ASSIGN(WebView); |
| 137 }; | 140 }; |
| 138 | 141 |
| 139 } // namespace views | 142 } // namespace views |
| 140 | 143 |
| 141 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ | 144 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ |
| OLD | NEW |