| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_HELPER_AURA_H_ | |
| 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_HELPER_AURA_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "ui/views/views_export.h" | |
| 10 #include "ui/views/widget/widget.h" | |
| 11 | |
| 12 namespace views { | |
| 13 | |
| 14 // A special delegate that encapsulates all logic for use of NativeWidgetAura | |
| 15 // on the desktop. | |
| 16 class VIEWS_EXPORT NativeWidgetHelperAura { | |
| 17 public: | |
| 18 virtual ~NativeWidgetHelperAura() {} | |
| 19 | |
| 20 // Called at the start of InitNativeWidget; determines whether we should | |
| 21 // set up a root_window_ for this widget. | |
| 22 virtual void PreInitialize(const Widget::InitParams& params) = 0; | |
| 23 | |
| 24 // Passes through a message to show the RootWindow, if it exists. | |
| 25 virtual void ShowRootWindow() = 0; | |
| 26 | |
| 27 // If we own a RootWindow, return it. Otherwise NULL. | |
| 28 virtual aura::RootWindow* GetRootWindow() = 0; | |
| 29 | |
| 30 // If this NativeWidgetAura has its own RootWindow, sets the position at the | |
| 31 // |root_window_|, and returns modified bounds to set the origin to | |
| 32 // zero. Otherwise, pass through in_bounds. | |
| 33 virtual gfx::Rect ModifyAndSetBounds(gfx::Rect bounds) = 0; | |
| 34 }; | |
| 35 | |
| 36 } // namespace views | |
| 37 | |
| 38 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_HELPER_AURA_H_ | |
| OLD | NEW |