blob: 81dcad95f55ff40c2fbe4987396a3ca136f2a140 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_AURA_ROOT_WINDOW_OBSERVER_H_
#define UI_AURA_ROOT_WINDOW_OBSERVER_H_
#include "ui/aura/aura_export.h"
namespace gfx {
class Point;
class Size;
}
namespace aura {
class RootWindow;
class Window;
class AURA_EXPORT RootWindowObserver {
public:
// Invoked after the RootWindow is resized.
virtual void OnRootWindowResized(const RootWindow* root,
const gfx::Size& old_size) {}
// Invoked after the RootWindow has been moved on screen.
virtual void OnRootWindowMoved(const RootWindow* root,
const gfx::Point& new_origin) {}
// Invoked when the native windowing system sends us a request to close our
// window.
virtual void OnRootWindowHostCloseRequested(const RootWindow* root) {}
// Invoked when the keyboard mapping has changed.
virtual void OnKeyboardMappingChanged(const RootWindow* root) {}
protected:
virtual ~RootWindowObserver() {}
};
} // namespace aura
#endif // UI_AURA_ROOT_WINDOW_OBSERVER_H_
|