| 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/wm/workspace/workspace_layout_manager.h" | 5 #include "ash/wm/workspace/workspace_layout_manager.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "ash/accessibility_delegate.h" | 10 #include "ash/accessibility_delegate.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 class TestShellObserver : public ShellObserver { | 85 class TestShellObserver : public ShellObserver { |
| 86 public: | 86 public: |
| 87 TestShellObserver() : call_count_(0), is_fullscreen_(false) { | 87 TestShellObserver() : call_count_(0), is_fullscreen_(false) { |
| 88 Shell::Get()->AddShellObserver(this); | 88 Shell::Get()->AddShellObserver(this); |
| 89 } | 89 } |
| 90 | 90 |
| 91 ~TestShellObserver() override { Shell::Get()->RemoveShellObserver(this); } | 91 ~TestShellObserver() override { Shell::Get()->RemoveShellObserver(this); } |
| 92 | 92 |
| 93 void OnFullscreenStateChanged(bool is_fullscreen, | 93 void OnFullscreenStateChanged(bool is_fullscreen, |
| 94 WmWindow* root_window) override { | 94 aura::Window* root_window) override { |
| 95 call_count_++; | 95 call_count_++; |
| 96 is_fullscreen_ = is_fullscreen; | 96 is_fullscreen_ = is_fullscreen; |
| 97 } | 97 } |
| 98 | 98 |
| 99 int call_count() const { return call_count_; } | 99 int call_count() const { return call_count_; } |
| 100 | 100 |
| 101 bool is_fullscreen() const { return is_fullscreen_; } | 101 bool is_fullscreen() const { return is_fullscreen_; } |
| 102 | 102 |
| 103 private: | 103 private: |
| 104 int call_count_; | 104 int call_count_; |
| (...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1538 window->SetBounds(keyboard_bounds()); | 1538 window->SetBounds(keyboard_bounds()); |
| 1539 wm::GetWindowState(window.get())->set_ignore_keyboard_bounds_change(true); | 1539 wm::GetWindowState(window.get())->set_ignore_keyboard_bounds_change(true); |
| 1540 wm::ActivateWindow(window.get()); | 1540 wm::ActivateWindow(window.get()); |
| 1541 | 1541 |
| 1542 EXPECT_EQ(keyboard_bounds(), window->bounds()); | 1542 EXPECT_EQ(keyboard_bounds(), window->bounds()); |
| 1543 ShowKeyboard(); | 1543 ShowKeyboard(); |
| 1544 EXPECT_EQ(keyboard_bounds(), window->bounds()); | 1544 EXPECT_EQ(keyboard_bounds(), window->bounds()); |
| 1545 } | 1545 } |
| 1546 | 1546 |
| 1547 } // namespace ash | 1547 } // namespace ash |
| OLD | NEW |