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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/shared_memory.h" | 9 #include "base/memory/shared_memory.h" |
10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override { | 359 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override { |
360 unhandled_keyboard_event_type_ = event.type; | 360 unhandled_keyboard_event_type_ = event.type; |
361 unhandled_keyboard_event_called_ = true; | 361 unhandled_keyboard_event_called_ = true; |
362 } | 362 } |
363 | 363 |
364 bool HandleWheelEvent(const blink::WebMouseWheelEvent& event) override { | 364 bool HandleWheelEvent(const blink::WebMouseWheelEvent& event) override { |
365 handle_wheel_event_called_ = true; | 365 handle_wheel_event_called_ = true; |
366 return handle_wheel_event_; | 366 return handle_wheel_event_; |
367 } | 367 } |
368 | 368 |
| 369 void Cut() override {} |
| 370 void Copy() override {} |
| 371 void Paste() override {} |
| 372 |
369 private: | 373 private: |
370 bool prehandle_keyboard_event_; | 374 bool prehandle_keyboard_event_; |
371 bool prehandle_keyboard_event_called_; | 375 bool prehandle_keyboard_event_called_; |
372 WebInputEvent::Type prehandle_keyboard_event_type_; | 376 WebInputEvent::Type prehandle_keyboard_event_type_; |
373 | 377 |
374 bool unhandled_keyboard_event_called_; | 378 bool unhandled_keyboard_event_called_; |
375 WebInputEvent::Type unhandled_keyboard_event_type_; | 379 WebInputEvent::Type unhandled_keyboard_event_type_; |
376 | 380 |
377 bool handle_wheel_event_; | 381 bool handle_wheel_event_; |
378 bool handle_wheel_event_called_; | 382 bool handle_wheel_event_called_; |
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1543 // Having an initial size set means that the size information had been sent | 1547 // Having an initial size set means that the size information had been sent |
1544 // with the reqiest to new up the RenderView and so subsequent WasResized | 1548 // with the reqiest to new up the RenderView and so subsequent WasResized |
1545 // calls should not result in new IPC (unless the size has actually changed). | 1549 // calls should not result in new IPC (unless the size has actually changed). |
1546 host_->WasResized(); | 1550 host_->WasResized(); |
1547 EXPECT_FALSE(process_->sink().GetUniqueMessageMatching(ViewMsg_Resize::ID)); | 1551 EXPECT_FALSE(process_->sink().GetUniqueMessageMatching(ViewMsg_Resize::ID)); |
1548 EXPECT_EQ(initial_size_, host_->old_resize_params_->new_size); | 1552 EXPECT_EQ(initial_size_, host_->old_resize_params_->new_size); |
1549 EXPECT_TRUE(host_->resize_ack_pending_); | 1553 EXPECT_TRUE(host_->resize_ack_pending_); |
1550 } | 1554 } |
1551 | 1555 |
1552 } // namespace content | 1556 } // namespace content |
OLD | NEW |