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

Unified Diff: ash/display/display_change_observer_chromeos.h

Issue 187073002: Refactoring display configuration state to allow generic state objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 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
« no previous file with comments | « ash/ash.gyp ('k') | ash/display/display_change_observer_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_change_observer_chromeos.h
diff --git a/ash/display/display_change_observer_chromeos.h b/ash/display/display_change_observer_chromeos.h
index df0dbb4ace92832311483d6bb921880f0f474fb3..03a7dc0bc23ca7049d3b90d86ff8cae094d7ed60 100644
--- a/ash/display/display_change_observer_chromeos.h
+++ b/ash/display/display_change_observer_chromeos.h
@@ -23,7 +23,7 @@ class DisplayChangeObserver : public ui::OutputConfigurator::StateController,
public:
// Returns the resolution list.
ASH_EXPORT static std::vector<DisplayMode> GetDisplayModeList(
- const ui::OutputConfigurator::OutputSnapshot& output);
+ const ui::OutputConfigurator::DisplayState& output);
DisplayChangeObserver();
virtual ~DisplayChangeObserver();
@@ -32,12 +32,11 @@ class DisplayChangeObserver : public ui::OutputConfigurator::StateController,
virtual ui::OutputState GetStateForDisplayIds(
const std::vector<int64>& outputs) const OVERRIDE;
virtual bool GetResolutionForDisplayId(int64 display_id,
- int* width,
- int* height) const OVERRIDE;
+ gfx::Size* size) const OVERRIDE;
// Overriden from ui::OutputConfigurator::Observer:
- virtual void OnDisplayModeChanged(const std::vector<
- ui::OutputConfigurator::OutputSnapshot>& outputs) OVERRIDE;
+ virtual void OnDisplayModeChanged(
+ const ui::OutputConfigurator::DisplayStateList& outputs) OVERRIDE;
// Overriden from ShellObserver:
virtual void OnAppTerminating() OVERRIDE;
« no previous file with comments | « ash/ash.gyp ('k') | ash/display/display_change_observer_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698