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

Side by Side Diff: ui/views/widget/native_widget_helper_aura.h

Issue 10081022: Aura/ash split: Remove hacks and get chrome linking without ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move the check to ash/. Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698