OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PRERENDER_PRERENDER_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 virtual void ShowCreatedWidget(int route_id, | 122 virtual void ShowCreatedWidget(int route_id, |
123 const gfx::Rect& initial_pos); | 123 const gfx::Rect& initial_pos); |
124 virtual void ShowCreatedFullscreenWidget(int route_id); | 124 virtual void ShowCreatedFullscreenWidget(int route_id); |
125 virtual void ShowContextMenu(const ContextMenuParams& params) {} | 125 virtual void ShowContextMenu(const ContextMenuParams& params) {} |
126 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 126 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
127 int item_height, | 127 int item_height, |
128 double item_font_size, | 128 double item_font_size, |
129 int selected_item, | 129 int selected_item, |
130 const std::vector<WebMenuItem>& items, | 130 const std::vector<WebMenuItem>& items, |
131 bool right_aligned) {} | 131 bool right_aligned) {} |
| 132 virtual bool IsWebCopyCutEnabled() { return false; } |
| 133 virtual bool IsWebPasteEnabled() { return false; } |
132 virtual void StartDragging(const WebDropData& drop_data, | 134 virtual void StartDragging(const WebDropData& drop_data, |
133 WebKit::WebDragOperationsMask allowed_operations, | 135 WebKit::WebDragOperationsMask allowed_operations, |
134 const SkBitmap& image, | 136 const SkBitmap& image, |
135 const gfx::Point& image_offset) {} | 137 const gfx::Point& image_offset) {} |
136 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} | 138 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} |
137 virtual void GotFocus() {} | 139 virtual void GotFocus() {} |
138 virtual void TakeFocus(bool reverse) {} | 140 virtual void TakeFocus(bool reverse) {} |
139 virtual void LostCapture() {} | 141 virtual void LostCapture() {} |
140 virtual void Activate() {} | 142 virtual void Activate() {} |
141 virtual void Deactivate() {} | 143 virtual void Deactivate() {} |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 // the time elapsed from initiating a prerender until the time the | 238 // the time elapsed from initiating a prerender until the time the |
237 // (potentially only partially) prerendered page is shown to the user. | 239 // (potentially only partially) prerendered page is shown to the user. |
238 base::TimeTicks load_start_time_; | 240 base::TimeTicks load_start_time_; |
239 | 241 |
240 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 242 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
241 }; | 243 }; |
242 | 244 |
243 } // prerender | 245 } // prerender |
244 | 246 |
245 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 247 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
OLD | NEW |