Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: components/mus/ws/window_manager_client_unittest.cc

Issue 2060513002: Tab dragging as implemented as a mus API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use not not pattern to fix win compile Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 } 56 }
57 Window* OnWmCreateTopLevelWindow( 57 Window* OnWmCreateTopLevelWindow(
58 std::map<std::string, std::vector<uint8_t>>* properties) override { 58 std::map<std::string, std::vector<uint8_t>>* properties) override {
59 return nullptr; 59 return nullptr;
60 } 60 }
61 void OnWmClientJankinessChanged(const std::set<Window*>& client_windows, 61 void OnWmClientJankinessChanged(const std::set<Window*>& client_windows,
62 bool janky) override {} 62 bool janky) override {}
63 void OnWmNewDisplay(Window* window, 63 void OnWmNewDisplay(Window* window,
64 const display::Display& display) override {} 64 const display::Display& display) override {}
65 void OnAccelerator(uint32_t id, const ui::Event& event) override {} 65 void OnAccelerator(uint32_t id, const ui::Event& event) override {}
66 void OnWmPerformMoveLoop(uint32_t change_id,
67 uint32_t window_id,
68 const gfx::Point& cursor_location) override {}
69 void OnWmCancelMoveLoop(uint32_t window_id) override {}
66 70
67 private: 71 private:
68 DISALLOW_COPY_AND_ASSIGN(TestWindowManagerDelegate); 72 DISALLOW_COPY_AND_ASSIGN(TestWindowManagerDelegate);
69 }; 73 };
70 74
71 class BoundsChangeObserver : public WindowObserver { 75 class BoundsChangeObserver : public WindowObserver {
72 public: 76 public:
73 explicit BoundsChangeObserver(Window* window) : window_(window) { 77 explicit BoundsChangeObserver(Window* window) : window_(window) {
74 window_->AddObserver(this); 78 window_->AddObserver(this);
75 } 79 }
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 ASSERT_TRUE(window_in_wm); 1166 ASSERT_TRUE(window_in_wm);
1163 1167
1164 // Change the bounds in the wm, and make sure the child sees it. 1168 // Change the bounds in the wm, and make sure the child sees it.
1165 window_in_wm->SetBounds(gfx::Rect(1, 11, 12, 101)); 1169 window_in_wm->SetBounds(gfx::Rect(1, 11, 12, 101));
1166 ASSERT_TRUE(WaitForBoundsToChange(window_in_second_client)); 1170 ASSERT_TRUE(WaitForBoundsToChange(window_in_second_client));
1167 EXPECT_EQ(gfx::Rect(1, 11, 12, 101), window_in_second_client->bounds()); 1171 EXPECT_EQ(gfx::Rect(1, 11, 12, 101), window_in_second_client->bounds());
1168 } 1172 }
1169 1173
1170 } // namespace ws 1174 } // namespace ws
1171 } // namespace mus 1175 } // namespace mus
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698