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

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

Issue 58853004: [win8] Force browsers created with Chrome in Metro mode to be on the Ash desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bots do not seem to care, but try not to break non-CrOS Ash on Linux. Also fix typo. Created 7 years, 1 month 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_frame_ash_win.h
diff --git a/chrome/browser/ui/views/frame/browser_frame_ash_win.h b/chrome/browser/ui/views/frame/browser_frame_ash_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..06f6a029bccaa448618522f6b939f571f03778dd
--- /dev/null
+++ b/chrome/browser/ui/views/frame/browser_frame_ash_win.h
@@ -0,0 +1,26 @@
+// Copyright 2013 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_FRAME_ASH_WIN_H_
sky 2013/11/14 15:28:42 I think you should go with ashwin, like we have au
tapted 2013/11/15 12:47:11 Done. (true - this was abusing that "win" \implies
+#define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_WIN_H_
+
+#include "chrome/browser/ui/views/frame/browser_frame_ash.h"
+
+// A NativeWidgetAura subclass that provides Windows-specific behavior on the
+// Ash desktop for Metro mode.
+class BrowserFrameAshWin : public BrowserFrameAsh {
+ public:
+ BrowserFrameAshWin(BrowserFrame* browser_frame, BrowserView* browser_view);
+
+ protected:
+ virtual ~BrowserFrameAshWin();
+
+ // Overridden from aura::client::ActivationChangeObserver:
+ virtual void OnWindowFocused(aura::Window* gained_focus,
+ aura::Window* lost_focus) OVERRIDE;
+ private:
+ DISALLOW_COPY_AND_ASSIGN(BrowserFrameAshWin);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698