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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/base_screen_handler.h

Issue 763563002: Implemented event-dispatching for button clicks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years 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) 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_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 // Returns the window which shows us. 233 // Returns the window which shows us.
234 virtual gfx::NativeWindow GetNativeWindow(); 234 virtual gfx::NativeWindow GetNativeWindow();
235 235
236 void set_base_screen(BaseScreen* base_screen) { base_screen_ = base_screen; } 236 void set_base_screen(BaseScreen* base_screen) { base_screen_ = base_screen; }
237 237
238 private: 238 private:
239 // Returns full name of JS method based on screen and method 239 // Returns full name of JS method based on screen and method
240 // names. 240 // names.
241 std::string FullMethodPath(const std::string& method) const; 241 std::string FullMethodPath(const std::string& method) const;
242 242
243 // Handles user action.
244 void HandleUserAction(const std::string& action_id);
245
243 // Handles situation when screen context is changed. 246 // Handles situation when screen context is changed.
244 void HandleContextChanged(const base::DictionaryValue* diff); 247 void HandleContextChanged(const base::DictionaryValue* diff);
245 248
246 // Keeps whether page is ready. 249 // Keeps whether page is ready.
247 bool page_is_ready_; 250 bool page_is_ready_;
248 251
249 BaseScreen* base_screen_; 252 BaseScreen* base_screen_;
250 253
251 base::DictionaryValue* localized_values_; 254 base::DictionaryValue* localized_values_;
252 255
253 // Full name of the corresponding JS screen object. Can be empty, if 256 // Full name of the corresponding JS screen object. Can be empty, if
254 // there are no corresponding screen object or several different 257 // there are no corresponding screen object or several different
255 // objects. 258 // objects.
256 std::string js_screen_path_prefix_; 259 std::string js_screen_path_prefix_;
257 260
258 // The string id used in the async asset load in JS. If it is set to a 261 // The string id used in the async asset load in JS. If it is set to a
259 // non empty value, the Initialize will be deferred until the underlying load 262 // non empty value, the Initialize will be deferred until the underlying load
260 // is finished. 263 // is finished.
261 std::string async_assets_load_id_; 264 std::string async_assets_load_id_;
262 265
263 DISALLOW_COPY_AND_ASSIGN(BaseScreenHandler); 266 DISALLOW_COPY_AND_ASSIGN(BaseScreenHandler);
264 }; 267 };
265 268
266 } // namespace chromeos 269 } // namespace chromeos
267 270
268 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_ 271 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698