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 "ash/root_window_controller.h" | 5 #include "ash/root_window_controller.h" |
6 | 6 |
7 #include "ash/session/session_state_delegate.h" | 7 #include "ash/session/session_state_delegate.h" |
8 #include "ash/shelf/shelf_layout_manager.h" | 8 #include "ash/shelf/shelf_layout_manager.h" |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "ash/shell_window_ids.h" | 10 #include "ash/shell_window_ids.h" |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
603 root->GetEventHandlerForPoint(gfx::Point(0, size.height() - 1))); | 603 root->GetEventHandlerForPoint(gfx::Point(0, size.height() - 1))); |
604 EXPECT_EQ(event_target, | 604 EXPECT_EQ(event_target, |
605 root->GetEventHandlerForPoint(gfx::Point(size.width() - 1, 0))); | 605 root->GetEventHandlerForPoint(gfx::Point(size.width() - 1, 0))); |
606 EXPECT_EQ(event_target, | 606 EXPECT_EQ(event_target, |
607 root->GetEventHandlerForPoint(gfx::Point(0, size.height() - 1))); | 607 root->GetEventHandlerForPoint(gfx::Point(0, size.height() - 1))); |
608 EXPECT_EQ(event_target, | 608 EXPECT_EQ(event_target, |
609 root->GetEventHandlerForPoint( | 609 root->GetEventHandlerForPoint( |
610 gfx::Point(size.width() - 1, size.height() - 1))); | 610 gfx::Point(size.width() - 1, size.height() - 1))); |
611 } | 611 } |
612 | 612 |
613 class VirtualKeyboardRootWindowControllerTest : public RootWindowControllerTest | 613 class VirtualKeyboardRootWindowControllerTest |
614 { | 614 : public RootWindowControllerTest { |
Daniel Erat
2014/07/21 21:56:36
indent wrapped lines four spaces instead of two
rucifer1217
2014/07/21 22:54:01
indent was changed to 4space from 2space.
| |
615 public: | 615 public: |
616 VirtualKeyboardRootWindowControllerTest() {}; | 616 VirtualKeyboardRootWindowControllerTest() {}; |
617 virtual ~VirtualKeyboardRootWindowControllerTest() {}; | 617 virtual ~VirtualKeyboardRootWindowControllerTest() {}; |
618 | 618 |
619 virtual void SetUp() OVERRIDE { | 619 virtual void SetUp() OVERRIDE { |
620 CommandLine::ForCurrentProcess()->AppendSwitch( | 620 CommandLine::ForCurrentProcess()->AppendSwitch( |
621 keyboard::switches::kEnableVirtualKeyboard); | 621 keyboard::switches::kEnableVirtualKeyboard); |
622 test::AshTestBase::SetUp(); | 622 test::AshTestBase::SetUp(); |
623 Shell::GetPrimaryRootWindowController()->ActivateKeyboard( | 623 Shell::GetPrimaryRootWindowController()->ActivateKeyboard( |
624 keyboard::KeyboardController::GetInstance()); | 624 keyboard::KeyboardController::GetInstance()); |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
836 if (switches::IsTextInputFocusManagerEnabled()) { | 836 if (switches::IsTextInputFocusManagerEnabled()) { |
837 ui::TextInputFocusManager::GetInstance()->BlurTextInputClient( | 837 ui::TextInputFocusManager::GetInstance()->BlurTextInputClient( |
838 &text_input_client); | 838 &text_input_client); |
839 } else { | 839 } else { |
840 input_method->SetFocusedTextInputClient(NULL); | 840 input_method->SetFocusedTextInputClient(NULL); |
841 } | 841 } |
842 } | 842 } |
843 | 843 |
844 } // namespace test | 844 } // namespace test |
845 } // namespace ash | 845 } // namespace ash |
OLD | NEW |