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

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

Issue 11195036: Overscan calibration UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "chrome/browser/ui/webui/options/options_ui.h" 10 #include "chrome/browser/ui/webui/options/options_ui.h"
11 #include "ui/aura/display_observer.h" 11 #include "ui/aura/display_observer.h"
12 12
13 namespace base { 13 namespace base {
14 class DictionaryValue; 14 class DictionaryValue;
15 class ListValue; 15 class ListValue;
16 } 16 }
17 17
18 namespace chromeos { 18 namespace chromeos {
19 class OverscanCalibrator;
20
19 namespace options { 21 namespace options {
20 22
21 // Display options overlay page UI handler. 23 // Display options overlay page UI handler.
22 class DisplayOptionsHandler : public ::options::OptionsPageUIHandler, 24 class DisplayOptionsHandler : public ::options::OptionsPageUIHandler,
23 public aura::DisplayObserver { 25 public aura::DisplayObserver {
24 public: 26 public:
25 DisplayOptionsHandler(); 27 DisplayOptionsHandler();
26 virtual ~DisplayOptionsHandler(); 28 virtual ~DisplayOptionsHandler();
27 29
28 // OptionsPageUIHandler implementation. 30 // OptionsPageUIHandler implementation.
(...skipping 24 matching lines...) Expand all
53 // finished. |layout| specifies the four positions of the secondary display 55 // finished. |layout| specifies the four positions of the secondary display
54 // (left/right/top/bottom), and |offset| is the offset length from the 56 // (left/right/top/bottom), and |offset| is the offset length from the
55 // left/top edge of the primary display. 57 // left/top edge of the primary display.
56 void OnFadeOutForDisplayLayoutFinished(int layout, int offset); 58 void OnFadeOutForDisplayLayoutFinished(int layout, int offset);
57 59
58 // Handlers of JS messages. 60 // Handlers of JS messages.
59 void HandleDisplayInfo(const base::ListValue* unused_args); 61 void HandleDisplayInfo(const base::ListValue* unused_args);
60 void HandleMirroring(const base::ListValue* args); 62 void HandleMirroring(const base::ListValue* args);
61 void HandleSetPrimary(const base::ListValue* args); 63 void HandleSetPrimary(const base::ListValue* args);
62 void HandleDisplayLayout(const base::ListValue* args); 64 void HandleDisplayLayout(const base::ListValue* args);
65 void HandleStartOverscanCalibration(const base::ListValue* args);
66 void HandleFinishOverscanCalibration(const base::ListValue* args);
67 void HandleClearOverscanCalibration(const base::ListValue* args);
68 void HandleUpdateOverscanCalibration(const base::ListValue* args);
69
70 scoped_ptr<OverscanCalibrator> overscan_calibrator_;
63 71
64 DISALLOW_COPY_AND_ASSIGN(DisplayOptionsHandler); 72 DISALLOW_COPY_AND_ASSIGN(DisplayOptionsHandler);
65 }; 73 };
66 74
67 } // namespace options 75 } // namespace options
68 } // namespace chromeos 76 } // namespace chromeos
69 77
70 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ 78 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698