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

Side by Side Diff: ui/aura/mus/window_tree_host_mus_delegate.h

Issue 2568303006: aura-mus: Implement Deactivate(). (Closed)
Patch Set: Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ 5 #ifndef UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_
6 #define UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ 6 #define UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 24 matching lines...) Expand all
35 virtual void OnWindowTreeHostClientAreaWillChange( 35 virtual void OnWindowTreeHostClientAreaWillChange(
36 WindowTreeHostMus* window_tree_host, 36 WindowTreeHostMus* window_tree_host,
37 const gfx::Insets& client_area, 37 const gfx::Insets& client_area,
38 const std::vector<gfx::Rect>& additional_client_areas) = 0; 38 const std::vector<gfx::Rect>& additional_client_areas) = 0;
39 39
40 // Called when the hit test mask is about to be cleared. 40 // Called when the hit test mask is about to be cleared.
41 virtual void OnWindowTreeHostHitTestMaskWillChange( 41 virtual void OnWindowTreeHostHitTestMaskWillChange(
42 WindowTreeHostMus* window_tree_host, 42 WindowTreeHostMus* window_tree_host,
43 const base::Optional<gfx::Rect>& mask_rect) = 0; 43 const base::Optional<gfx::Rect>& mask_rect) = 0;
44 44
45 // Called to clear the focus of the current window.
46 virtual void OnWindowTreeHostClearFocus() = 0;
47
45 // Called when a WindowTreeHostMus is created without a WindowPort. 48 // Called when a WindowTreeHostMus is created without a WindowPort.
46 // TODO: this should take an unordered_map, see http://crbug.com/670515. 49 // TODO: this should take an unordered_map, see http://crbug.com/670515.
47 virtual std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel( 50 virtual std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel(
48 const std::map<std::string, std::vector<uint8_t>>* properties) = 0; 51 const std::map<std::string, std::vector<uint8_t>>* properties) = 0;
49 52
50 // Called from WindowTreeHostMus's constructor once the Window has been 53 // Called from WindowTreeHostMus's constructor once the Window has been
51 // created. 54 // created.
52 virtual void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) = 0; 55 virtual void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) = 0;
53 56
54 protected: 57 protected:
55 virtual ~WindowTreeHostMusDelegate() {} 58 virtual ~WindowTreeHostMusDelegate() {}
56 }; 59 };
57 60
58 } // namespace aura 61 } // namespace aura
59 62
60 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ 63 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698