OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/common/system/web_notification/ash_popup_alignment_delegate.h" | 5 #include "ash/system/web_notification/ash_popup_alignment_delegate.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/common/shelf/wm_shelf.h" | 10 #include "ash/common/shelf/wm_shelf.h" |
11 #include "ash/common/wm_shell.h" | 11 #include "ash/common/wm_shell.h" |
12 #include "ash/common/wm_window.h" | 12 #include "ash/common/wm_window.h" |
13 #include "ash/public/cpp/shelf_types.h" | 13 #include "ash/public/cpp/shelf_types.h" |
14 #include "ash/public/cpp/shell_window_ids.h" | 14 #include "ash/public/cpp/shell_window_ids.h" |
15 #include "ash/root_window_controller.h" | 15 #include "ash/root_window_controller.h" |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 shelf->SetVirtualKeyboardBoundsForTesting(keyboard_bounds); | 282 shelf->SetVirtualKeyboardBoundsForTesting(keyboard_bounds); |
283 int keyboard_baseline = alignment_delegate()->GetBaseLine(); | 283 int keyboard_baseline = alignment_delegate()->GetBaseLine(); |
284 EXPECT_NE(baseline, keyboard_baseline); | 284 EXPECT_NE(baseline, keyboard_baseline); |
285 EXPECT_GT(keyboard_bounds.y(), keyboard_baseline); | 285 EXPECT_GT(keyboard_bounds.y(), keyboard_baseline); |
286 | 286 |
287 shelf->SetVirtualKeyboardBoundsForTesting(gfx::Rect()); | 287 shelf->SetVirtualKeyboardBoundsForTesting(gfx::Rect()); |
288 EXPECT_EQ(baseline, alignment_delegate()->GetBaseLine()); | 288 EXPECT_EQ(baseline, alignment_delegate()->GetBaseLine()); |
289 } | 289 } |
290 | 290 |
291 } // namespace ash | 291 } // namespace ash |
OLD | NEW |