OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // first time. | 109 // first time. |
110 virtual void SetInitialFocus() = 0; | 110 virtual void SetInitialFocus() = 0; |
111 | 111 |
112 // Stores the currently focused view. | 112 // Stores the currently focused view. |
113 virtual void StoreFocus() = 0; | 113 virtual void StoreFocus() = 0; |
114 | 114 |
115 // Restores focus to the last focus view. If StoreFocus has not yet been | 115 // Restores focus to the last focus view. If StoreFocus has not yet been |
116 // invoked, SetInitialFocus is invoked. | 116 // invoked, SetInitialFocus is invoked. |
117 virtual void RestoreFocus() = 0; | 117 virtual void RestoreFocus() = 0; |
118 | 118 |
| 119 virtual bool IsWebCopyCutEnabled(); |
| 120 virtual bool IsWebPasteEnabled(); |
| 121 |
119 // RenderViewHostDelegate::View method. Forwards to the TabContentsDelegate. | 122 // RenderViewHostDelegate::View method. Forwards to the TabContentsDelegate. |
120 virtual void LostCapture(); | 123 virtual void LostCapture(); |
121 | 124 |
122 // Keyboard events forwarding from the RenderViewHost. | 125 // Keyboard events forwarding from the RenderViewHost. |
123 // The default implementation just forward the events to the | 126 // The default implementation just forward the events to the |
124 // TabContentsDelegate object. | 127 // TabContentsDelegate object. |
125 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 128 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
126 bool* is_keyboard_shortcut); | 129 bool* is_keyboard_shortcut); |
127 | 130 |
128 // Keyboard events forwarding from the RenderViewHost. | 131 // Keyboard events forwarding from the RenderViewHost. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 212 |
210 // These maps hold on to the widgets that we created on behalf of the | 213 // These maps hold on to the widgets that we created on behalf of the |
211 // renderer that haven't shown yet. | 214 // renderer that haven't shown yet. |
212 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews; | 215 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews; |
213 PendingWidgetViews pending_widget_views_; | 216 PendingWidgetViews pending_widget_views_; |
214 | 217 |
215 DISALLOW_COPY_AND_ASSIGN(TabContentsView); | 218 DISALLOW_COPY_AND_ASSIGN(TabContentsView); |
216 }; | 219 }; |
217 | 220 |
218 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ | 221 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ |
OLD | NEW |