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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 void ShowContextMenu(RenderFrameHost* render_frame_host, | 115 void ShowContextMenu(RenderFrameHost* render_frame_host, |
116 const ContextMenuParams& params) override; | 116 const ContextMenuParams& params) override; |
117 void StartDragging(const DropData& drop_data, | 117 void StartDragging(const DropData& drop_data, |
118 blink::WebDragOperationsMask operations, | 118 blink::WebDragOperationsMask operations, |
119 const gfx::ImageSkia& image, | 119 const gfx::ImageSkia& image, |
120 const gfx::Vector2d& image_offset, | 120 const gfx::Vector2d& image_offset, |
121 const DragEventSourceInfo& event_info) override; | 121 const DragEventSourceInfo& event_info) override; |
122 void UpdateDragCursor(blink::WebDragOperation operation) override; | 122 void UpdateDragCursor(blink::WebDragOperation operation) override; |
123 void GotFocus() override; | 123 void GotFocus() override; |
124 void TakeFocus(bool reverse) override; | 124 void TakeFocus(bool reverse) override; |
| 125 #if defined(USE_EXTERNAL_POPUP_MENU) |
| 126 void ShowPopupMenu(RenderFrameHost* render_frame_host, |
| 127 const gfx::Rect& bounds, |
| 128 int item_height, |
| 129 double item_font_size, |
| 130 int selected_item, |
| 131 const std::vector<MenuItem>& items, |
| 132 bool right_aligned, |
| 133 bool allow_multiple_selection) override; |
| 134 |
| 135 void HidePopupMenu() override; |
| 136 #endif |
125 | 137 |
126 // Overridden from OverscrollControllerDelegate: | 138 // Overridden from OverscrollControllerDelegate: |
127 gfx::Rect GetVisibleBounds() const override; | 139 gfx::Rect GetVisibleBounds() const override; |
128 bool OnOverscrollUpdate(float delta_x, float delta_y) override; | 140 bool OnOverscrollUpdate(float delta_x, float delta_y) override; |
129 void OnOverscrollComplete(OverscrollMode overscroll_mode) override; | 141 void OnOverscrollComplete(OverscrollMode overscroll_mode) override; |
130 void OnOverscrollModeChange(OverscrollMode old_mode, | 142 void OnOverscrollModeChange(OverscrollMode old_mode, |
131 OverscrollMode new_mode) override; | 143 OverscrollMode new_mode) override; |
132 | 144 |
133 // Overridden from aura::WindowDelegate: | 145 // Overridden from aura::WindowDelegate: |
134 gfx::Size GetMinimumSize() const override; | 146 gfx::Size GetMinimumSize() const override; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 std::unique_ptr<GestureNavSimple> gesture_nav_simple_; | 212 std::unique_ptr<GestureNavSimple> gesture_nav_simple_; |
201 | 213 |
202 bool init_rwhv_with_null_parent_for_testing_; | 214 bool init_rwhv_with_null_parent_for_testing_; |
203 | 215 |
204 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); | 216 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); |
205 }; | 217 }; |
206 | 218 |
207 } // namespace content | 219 } // namespace content |
208 | 220 |
209 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 221 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
OLD | NEW |