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/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 View* parent, | 88 View* parent, |
89 View* child) OVERRIDE; | 89 View* child) OVERRIDE; |
90 virtual bool SkipDefaultKeyEventProcessing( | 90 virtual bool SkipDefaultKeyEventProcessing( |
91 const ui::KeyEvent& event) OVERRIDE; | 91 const ui::KeyEvent& event) OVERRIDE; |
92 virtual bool IsFocusable() const OVERRIDE; | 92 virtual bool IsFocusable() const OVERRIDE; |
93 virtual void OnFocus() OVERRIDE; | 93 virtual void OnFocus() OVERRIDE; |
94 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; | 94 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; |
95 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 95 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
96 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; | 96 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
97 virtual gfx::Size GetPreferredSize() OVERRIDE; | 97 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 98 #if defined(USE_AURA) |
| 99 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE; |
| 100 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; |
| 101 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; |
| 102 virtual void OnDragExited() OVERRIDE; |
| 103 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; |
| 104 #endif |
98 | 105 |
99 // Overridden from content::NotificationObserver: | 106 // Overridden from content::NotificationObserver: |
100 virtual void Observe(int type, | 107 virtual void Observe(int type, |
101 const content::NotificationSource& source, | 108 const content::NotificationSource& source, |
102 const content::NotificationDetails& details) OVERRIDE; | 109 const content::NotificationDetails& details) OVERRIDE; |
103 | 110 |
104 // Overridden from content::WebContentsDelegate: | 111 // Overridden from content::WebContentsDelegate: |
105 virtual void WebContentsFocused(content::WebContents* web_contents) OVERRIDE; | 112 virtual void WebContentsFocused(content::WebContents* web_contents) OVERRIDE; |
106 | 113 |
107 void AttachWebContents(); | 114 void AttachWebContents(); |
(...skipping 16 matching lines...) Expand all Loading... |
124 content::NotificationRegistrar registrar_; | 131 content::NotificationRegistrar registrar_; |
125 bool allow_accelerators_; | 132 bool allow_accelerators_; |
126 gfx::Size preferred_size_; | 133 gfx::Size preferred_size_; |
127 | 134 |
128 DISALLOW_COPY_AND_ASSIGN(WebView); | 135 DISALLOW_COPY_AND_ASSIGN(WebView); |
129 }; | 136 }; |
130 | 137 |
131 } // namespace views | 138 } // namespace views |
132 | 139 |
133 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ | 140 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ |
OLD | NEW |