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 #include "content/browser/renderer_host/render_widget_host_view_aura.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <tuple> | 10 #include <tuple> |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 return true; | 169 return true; |
170 } | 170 } |
171 void Cut() override {} | 171 void Cut() override {} |
172 void Copy() override {} | 172 void Copy() override {} |
173 void Paste() override {} | 173 void Paste() override {} |
174 void SelectAll() override {} | 174 void SelectAll() override {} |
175 void SendScreenRects() override { | 175 void SendScreenRects() override { |
176 if (rwh_) | 176 if (rwh_) |
177 rwh_->SendScreenRects(); | 177 rwh_->SendScreenRects(); |
178 } | 178 } |
179 bool IsFullscreenForCurrentTab( | 179 bool IsFullscreenForCurrentTab() const override { return is_fullscreen_; } |
180 RenderWidgetHostImpl* render_widget_host) const override { | |
181 return is_fullscreen_; | |
182 } | |
183 | 180 |
184 private: | 181 private: |
185 std::unique_ptr<NativeWebKeyboardEvent> last_event_; | 182 std::unique_ptr<NativeWebKeyboardEvent> last_event_; |
186 RenderWidgetHostImpl* rwh_; | 183 RenderWidgetHostImpl* rwh_; |
187 bool is_fullscreen_; | 184 bool is_fullscreen_; |
188 | 185 |
189 DISALLOW_COPY_AND_ASSIGN(MockRenderWidgetHostDelegate); | 186 DISALLOW_COPY_AND_ASSIGN(MockRenderWidgetHostDelegate); |
190 }; | 187 }; |
191 | 188 |
192 // Simple observer that keeps track of changes to a window for tests. | 189 // Simple observer that keeps track of changes to a window for tests. |
(...skipping 4291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4484 view()->OnGestureEvent(&gesture_event); | 4481 view()->OnGestureEvent(&gesture_event); |
4485 | 4482 |
4486 EXPECT_TRUE(delegate->context_menu_request_received()); | 4483 EXPECT_TRUE(delegate->context_menu_request_received()); |
4487 EXPECT_EQ(delegate->context_menu_source_type(), ui::MENU_SOURCE_TOUCH); | 4484 EXPECT_EQ(delegate->context_menu_source_type(), ui::MENU_SOURCE_TOUCH); |
4488 #endif | 4485 #endif |
4489 | 4486 |
4490 RenderViewHostFactory::set_is_real_render_view_host(false); | 4487 RenderViewHostFactory::set_is_real_render_view_host(false); |
4491 } | 4488 } |
4492 | 4489 |
4493 } // namespace content | 4490 } // namespace content |
OLD | NEW |