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

Unified Diff: chrome/browser/chromeos/display/primary_display_switch_observer.h

Issue 12438016: Save display preference when all display configuration changes has been completed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: replace dcheck Created 7 years, 9 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/chromeos/display/primary_display_switch_observer.h
diff --git a/chrome/browser/chromeos/display/primary_display_switch_observer.h b/chrome/browser/chromeos/display/primary_display_switch_observer.h
deleted file mode 100644
index 7ca3b85788a81e1d4850ad6051cbb05eac6107f7..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/display/primary_display_switch_observer.h
+++ /dev/null
@@ -1,45 +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_CHROMEOS_DISPLAY_PRIMARY_DISPLAY_SWITCH_OBSERVER_H_
-#define CHROME_BROWSER_CHROMEOS_DISPLAY_PRIMARY_DISPLAY_SWITCH_OBSERVER_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ui/aura/root_window_observer.h"
-#include "ui/aura/window_observer.h"
-
-namespace aura {
-class RootWindow;
-}
-
-namespace gfx {
-class Point;
-}
-
-namespace chromeos {
-
-// PrimaryDisplaySwitchObserver observes the change of the primary/secondary
-// displays and store the current primary display ID into the local preference.
-class PrimaryDisplaySwitchObserver : public aura::RootWindowObserver,
- public aura::WindowObserver {
- public:
- PrimaryDisplaySwitchObserver();
- virtual ~PrimaryDisplaySwitchObserver();
-
- protected:
- // aura::RootWindowObserver overrides:
- virtual void OnRootWindowMoved(const aura::RootWindow* root_window,
- const gfx::Point& new_origin) OVERRIDE;
- // aura::WindowObserver overrides:
- virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
-
- aura::RootWindow* primary_root_;
-
- DISALLOW_COPY_AND_ASSIGN(PrimaryDisplaySwitchObserver);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_DISPLAY_PRIMARY_DISPLAY_SWITCH_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698