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

Unified Diff: chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.h

Issue 160573002: Move root_window_host* in aura to window_tree_host*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.h
diff --git a/chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.h b/chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.h
deleted file mode 100644
index e2d01727fdb88617ddabc5741a5b47a1df9e6938..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// 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 CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
-#define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
-
-#include <windows.h>
-#include <uxtheme.h>
-
-#include "ui/views/widget/desktop_aura/desktop_root_window_host_win.h"
-#include "chrome/browser/ui/views/frame/browser_desktop_root_window_host.h"
-#include "chrome/browser/ui/views/frame/minimize_button_metrics_win.h"
-
-class BrowserFrame;
-class BrowserView;
-class BrowserWindowPropertyManager;
-
-namespace views {
-class DesktopNativeWidgetAura;
-class NativeMenuWin;
-}
-
-class BrowserDesktopWindowTreeHostWin : public BrowserDesktopWindowTreeHost,
- public views::DesktopWindowTreeHostWin {
- public:
- BrowserDesktopWindowTreeHostWin(
- views::internal::NativeWidgetDelegate* native_widget_delegate,
- views::DesktopNativeWidgetAura* desktop_native_widget_aura,
- BrowserView* browser_view,
- BrowserFrame* browser_frame);
- virtual ~BrowserDesktopWindowTreeHostWin();
-
- private:
- views::NativeMenuWin* GetSystemMenu();
-
- // Overridden from BrowserDesktopWindowTreeHost:
- virtual DesktopWindowTreeHost* AsDesktopWindowTreeHost() OVERRIDE;
- virtual int GetMinimizeButtonOffset() const OVERRIDE;
- virtual bool UsesNativeSystemMenu() const OVERRIDE;
-
- // Overridden from DesktopWindowTreeHostWin:
- virtual int GetInitialShowState() const OVERRIDE;
- virtual bool GetClientAreaInsets(gfx::Insets* insets) const OVERRIDE;
- virtual void HandleCreate() OVERRIDE;
- virtual void HandleFrameChanged() OVERRIDE;
- virtual bool PreHandleMSG(UINT message,
- WPARAM w_param,
- LPARAM l_param,
- LRESULT* result) OVERRIDE;
- virtual void PostHandleMSG(UINT message,
- WPARAM w_param,
- LPARAM l_param) OVERRIDE;
- virtual bool IsUsingCustomFrame() const OVERRIDE;
- virtual bool ShouldUseNativeFrame() const OVERRIDE;
- virtual void FrameTypeChanged() OVERRIDE;
-
- void UpdateDWMFrame();
-
- MARGINS GetDWMFrameMargins() const;
-
- BrowserView* browser_view_;
- BrowserFrame* browser_frame_;
-
- MinimizeButtonMetrics minimize_button_metrics_;
-
- scoped_ptr<BrowserWindowPropertyManager> browser_window_property_manager_;
-
- // The wrapped system menu itself.
- scoped_ptr<views::NativeMenuWin> system_menu_;
-
- // Necessary to avoid corruption on NC paint in Aero mode.
- bool did_gdi_clear_;
-
- DISALLOW_COPY_AND_ASSIGN(BrowserDesktopWindowTreeHostWin);
-};
-
-
-#endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698