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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/display_overscan_handler.h

Issue 294963004: Revert of Add OnDisplayMetricsChanged in DisplayObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_orientation
Patch Set: Created 6 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OVERSCAN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OVERSCAN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OVERSCAN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OVERSCAN_HANDLER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/ui/webui/options/options_ui.h" 9 #include "chrome/browser/ui/webui/options/options_ui.h"
10 #include "ui/gfx/display_observer.h" 10 #include "ui/gfx/display_observer.h"
(...skipping 16 matching lines...) Expand all
27 virtual ~DisplayOverscanHandler(); 27 virtual ~DisplayOverscanHandler();
28 28
29 // OptionsPageUIHandler implementation. 29 // OptionsPageUIHandler implementation.
30 virtual void GetLocalizedValues( 30 virtual void GetLocalizedValues(
31 base::DictionaryValue* localized_strings) OVERRIDE; 31 base::DictionaryValue* localized_strings) OVERRIDE;
32 32
33 // WebUIMessageHandler implementation. 33 // WebUIMessageHandler implementation.
34 virtual void RegisterMessages() OVERRIDE; 34 virtual void RegisterMessages() OVERRIDE;
35 35
36 // gfx::DisplayObserver implementation. 36 // gfx::DisplayObserver implementation.
37 virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE;
37 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE; 38 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE;
38 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE; 39 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE;
39 virtual void OnDisplayMetricsChanged(const gfx::Display& display,
40 uint32_t metrics) OVERRIDE;
41 40
42 private: 41 private:
43 // Handlers of JS messages. 42 // Handlers of JS messages.
44 void HandleStart(const base::ListValue* args); 43 void HandleStart(const base::ListValue* args);
45 void HandleCommit(const base::ListValue* unused_args); 44 void HandleCommit(const base::ListValue* unused_args);
46 void HandleReset(const base::ListValue* unused_args); 45 void HandleReset(const base::ListValue* unused_args);
47 void HandleCancel(const base::ListValue* unused_args); 46 void HandleCancel(const base::ListValue* unused_args);
48 void HandleMove(const base::ListValue* args); 47 void HandleMove(const base::ListValue* args);
49 void HandleResize(const base::ListValue* args); 48 void HandleResize(const base::ListValue* args);
50 49
51 scoped_ptr<OverscanCalibrator> overscan_calibrator_; 50 scoped_ptr<OverscanCalibrator> overscan_calibrator_;
52 51
53 DISALLOW_COPY_AND_ASSIGN(DisplayOverscanHandler); 52 DISALLOW_COPY_AND_ASSIGN(DisplayOverscanHandler);
54 }; 53 };
55 54
56 } // namespace options 55 } // namespace options
57 } // namespace chromeos 56 } // namespace chromeos
58 57
59 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OVERSCAN_HANDLER_H_ 58 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OVERSCAN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698