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

Side by Side Diff: views/window/native_window_views.h

Issue 7069022: Adds a basic NativeWindowViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 | « views/window/native_window_gtk.cc ('k') | views/window/native_window_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 VIEWS_WINDOW_NATIVE_WINDOW_VIEWS_H_
6 #define VIEWS_WINDOW_NATIVE_WINDOW_VIEWS_H_
7 #pragma once
8
9 #include "base/message_loop.h"
10 #include "views/window/native_window.h"
11 #include "views/widget/native_widget_views.h"
12
13 namespace views {
14
15 ////////////////////////////////////////////////////////////////////////////////
16 // NativeWindowViews
17 //
18 // A NativeWindow implementation that uses another View as its native widget.
19 //
20 class NativeWindowViews : public NativeWidgetViews,
21 public NativeWindow {
22 public:
23 NativeWindowViews(View* host, internal::NativeWindowDelegate* delegate);
24 virtual ~NativeWindowViews();
25
26 private:
27 // Overridden from NativeWindow:
28 virtual Window* GetWindow() OVERRIDE;
29 virtual const Window* GetWindow() const OVERRIDE;
30 virtual NativeWidget* AsNativeWidget() OVERRIDE;
31 virtual const NativeWidget* AsNativeWidget() const OVERRIDE;
32 virtual gfx::Rect GetRestoredBounds() const OVERRIDE;
33 virtual void ShowNativeWindow(ShowState state) OVERRIDE;
34 virtual void BecomeModal() OVERRIDE;
35 virtual void CenterWindow(const gfx::Size& size) OVERRIDE;
36 virtual void GetWindowBoundsAndMaximizedState(gfx::Rect* bounds,
37 bool* maximized) const OVERRIDE;
38 virtual void EnableClose(bool enable) OVERRIDE;
39 virtual void SetWindowTitle(const std::wstring& title) OVERRIDE;
40 virtual void SetWindowIcons(const SkBitmap& window_icon,
41 const SkBitmap& app_icon) OVERRIDE;
42 virtual void SetAccessibleName(const std::wstring& name) OVERRIDE;
43 virtual void SetAccessibleRole(ui::AccessibilityTypes::Role role) OVERRIDE;
44 virtual void SetAccessibleState(ui::AccessibilityTypes::State state) OVERRIDE;
45 virtual void SetWindowBounds(const gfx::Rect& bounds,
46 gfx::NativeWindow other_window) OVERRIDE;
47 virtual void HideWindow() OVERRIDE;
48 virtual void Activate() OVERRIDE;
49 virtual void Deactivate() OVERRIDE;
50 virtual void Maximize() OVERRIDE;
51 virtual void Minimize() OVERRIDE;
52 virtual void Restore() OVERRIDE;
53 virtual bool IsActive() const OVERRIDE;
54 virtual bool IsVisible() const OVERRIDE;
55 virtual bool IsMaximized() const OVERRIDE;
56 virtual bool IsMinimized() const OVERRIDE;
57 virtual void SetFullscreen(bool fullscreen) OVERRIDE;
58 virtual bool IsFullscreen() const OVERRIDE;
59 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
60 virtual void SetUseDragFrame(bool use_drag_frame) OVERRIDE;
61 virtual NonClientFrameView* CreateFrameViewForWindow() OVERRIDE;
62 virtual void UpdateFrameAfterFrameChange() OVERRIDE;
63 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE;
64 virtual bool ShouldUseNativeFrame() const OVERRIDE;
65 virtual void FrameTypeChanged() OVERRIDE;
66
67 internal::NativeWindowDelegate* delegate_;
68
69 DISALLOW_COPY_AND_ASSIGN(NativeWindowViews);
70 };
71
72 }
73
74 #endif // VIEWS_WINDOW_NATIVE_WINDOW_VIEWS_H_
OLDNEW
« no previous file with comments | « views/window/native_window_gtk.cc ('k') | views/window/native_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698