| 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_BACKGROUND_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 virtual void ShowCreatedWidget(int route_id, | 76 virtual void ShowCreatedWidget(int route_id, |
| 77 const gfx::Rect& initial_pos); | 77 const gfx::Rect& initial_pos); |
| 78 virtual void ShowContextMenu(const ContextMenuParams& params) {} | 78 virtual void ShowContextMenu(const ContextMenuParams& params) {} |
| 79 virtual void StartDragging(const WebDropData& drop_data, | 79 virtual void StartDragging(const WebDropData& drop_data, |
| 80 WebKit::WebDragOperationsMask allowed_operations, | 80 WebKit::WebDragOperationsMask allowed_operations, |
| 81 const SkBitmap& image, | 81 const SkBitmap& image, |
| 82 const gfx::Point& image_offset) {} | 82 const gfx::Point& image_offset) {} |
| 83 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} | 83 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} |
| 84 virtual void GotFocus() {} | 84 virtual void GotFocus() {} |
| 85 virtual void TakeFocus(bool reverse) {} | 85 virtual void TakeFocus(bool reverse) {} |
| 86 virtual void Activate() {} |
| 87 virtual void Deactivate() {} |
| 86 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 88 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 87 bool* is_keyboard_shortcut) { | 89 bool* is_keyboard_shortcut) { |
| 88 return false; | 90 return false; |
| 89 } | 91 } |
| 90 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 92 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
| 91 virtual void HandleMouseMove() {} | 93 virtual void HandleMouseMove() {} |
| 92 virtual void HandleMouseDown() {} | 94 virtual void HandleMouseDown() {} |
| 93 virtual void HandleMouseLeave() {} | 95 virtual void HandleMouseLeave() {} |
| 94 virtual void UpdatePreferredSize(const gfx::Size& new_size) {} | 96 virtual void UpdatePreferredSize(const gfx::Size& new_size) {} |
| 95 | 97 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 BackgroundContents* contents; | 136 BackgroundContents* contents; |
| 135 | 137 |
| 136 // The name of the parent frame for these contents. | 138 // The name of the parent frame for these contents. |
| 137 const string16& frame_name; | 139 const string16& frame_name; |
| 138 | 140 |
| 139 // The ID of the parent application (if any). | 141 // The ID of the parent application (if any). |
| 140 const string16& application_id; | 142 const string16& application_id; |
| 141 }; | 143 }; |
| 142 | 144 |
| 143 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ | 145 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
| OLD | NEW |