blob: 4d73932724a691a91f05b2c59164380c090e2b84 (
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
|
// 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_VIEWS_WIDGET_NATIVE_WIDGET_HELPER_AURA_H_
#define UI_VIEWS_WIDGET_NATIVE_WIDGET_HELPER_AURA_H_
#pragma once
#include "ui/views/views_export.h"
#include "ui/views/widget/widget.h"
namespace views {
// A special delegate that encapsulates all logic for use of NativeWidgetAura
// on the desktop.
class VIEWS_EXPORT NativeWidgetHelperAura {
public:
virtual ~NativeWidgetHelperAura() {}
// Called at the start of InitNativeWidget; determines whether we should
// set up a root_window_ for this widget.
virtual void PreInitialize(const Widget::InitParams& params) = 0;
// Passes through a message to show the RootWindow, if it exists.
virtual void ShowRootWindow() = 0;
// If we own a RootWindow, return it. Otherwise NULL.
virtual aura::RootWindow* GetRootWindow() = 0;
// If this NativeWidgetAura has its own RootWindow, sets the position at the
// |root_window_|, and returns modified bounds to set the origin to
// zero. Otherwise, pass through in_bounds.
virtual gfx::Rect ModifyAndSetBounds(gfx::Rect bounds) = 0;
};
} // namespace views
#endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_HELPER_AURA_H_
|