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/location.h" | 8 #include "base/location.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 } | 365 } |
366 | 366 |
367 bool HandleWheelEvent(const blink::WebMouseWheelEvent& event) override { | 367 bool HandleWheelEvent(const blink::WebMouseWheelEvent& event) override { |
368 handle_wheel_event_called_ = true; | 368 handle_wheel_event_called_ = true; |
369 return handle_wheel_event_; | 369 return handle_wheel_event_; |
370 } | 370 } |
371 | 371 |
372 void Cut() override {} | 372 void Cut() override {} |
373 void Copy() override {} | 373 void Copy() override {} |
374 void Paste() override {} | 374 void Paste() override {} |
| 375 void SelectAll() override {} |
375 | 376 |
376 private: | 377 private: |
377 bool prehandle_keyboard_event_; | 378 bool prehandle_keyboard_event_; |
378 bool prehandle_keyboard_event_called_; | 379 bool prehandle_keyboard_event_called_; |
379 WebInputEvent::Type prehandle_keyboard_event_type_; | 380 WebInputEvent::Type prehandle_keyboard_event_type_; |
380 | 381 |
381 bool unhandled_keyboard_event_called_; | 382 bool unhandled_keyboard_event_called_; |
382 WebInputEvent::Type unhandled_keyboard_event_type_; | 383 WebInputEvent::Type unhandled_keyboard_event_type_; |
383 | 384 |
384 bool handle_wheel_event_; | 385 bool handle_wheel_event_; |
(...skipping 1158 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 | 1544 // 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 | 1545 // 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). | 1546 // calls should not result in new IPC (unless the size has actually changed). |
1546 host_->WasResized(); | 1547 host_->WasResized(); |
1547 EXPECT_FALSE(process_->sink().GetUniqueMessageMatching(ViewMsg_Resize::ID)); | 1548 EXPECT_FALSE(process_->sink().GetUniqueMessageMatching(ViewMsg_Resize::ID)); |
1548 EXPECT_EQ(initial_size_, host_->old_resize_params_->new_size); | 1549 EXPECT_EQ(initial_size_, host_->old_resize_params_->new_size); |
1549 EXPECT_TRUE(host_->resize_ack_pending_); | 1550 EXPECT_TRUE(host_->resize_ack_pending_); |
1550 } | 1551 } |
1551 | 1552 |
1552 } // namespace content | 1553 } // namespace content |
OLD | NEW |