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

Side by Side Diff: chrome/browser/chromeos/login/screens/base_screen.cc

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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/chromeos/login/screens/base_screen.h" 5 #include "chrome/browser/chromeos/login/screens/base_screen.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" 8 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 return GetName(); 42 return GetName();
43 } 43 }
44 44
45 void BaseScreen::Finish(BaseScreenDelegate::ExitCodes exit_code) { 45 void BaseScreen::Finish(BaseScreenDelegate::ExitCodes exit_code) {
46 base_screen_delegate_->OnExit(*this, exit_code, &context_); 46 base_screen_delegate_->OnExit(*this, exit_code, &context_);
47 } 47 }
48 48
49 void BaseScreen::SetContext(::login::ScreenContext* context) { 49 void BaseScreen::SetContext(::login::ScreenContext* context) {
50 } 50 }
51 51
52 void BaseScreen::OnButtonPressed(const std::string& button_id) { 52 void BaseScreen::OnUserAction(const std::string& action_id) {
53 LOG(WARNING) << "Unhandled button click: button_id=" << button_id; 53 LOG(WARNING) << "Unhandled user action: action_id=" << action_id;
54 } 54 }
55 55
56 void BaseScreen::OnContextKeyUpdated( 56 void BaseScreen::OnContextKeyUpdated(
57 const ::login::ScreenContext::KeyType& key) { 57 const ::login::ScreenContext::KeyType& key) {
58 LOG(WARNING) << "Unhandled context change: key=" << key; 58 LOG(WARNING) << "Unhandled context change: key=" << key;
59 } 59 }
60 60
61 void BaseScreen::OnContextChanged(const base::DictionaryValue& diff) { 61 void BaseScreen::OnContextChanged(const base::DictionaryValue& diff) {
62 std::vector<::login::ScreenContext::KeyType> keys; 62 std::vector<::login::ScreenContext::KeyType> keys;
63 context_.ApplyChanges(diff, &keys); 63 context_.ApplyChanges(diff, &keys);
64 for (const auto& key : keys) 64 for (const auto& key : keys)
65 OnContextKeyUpdated(key); 65 OnContextKeyUpdated(key);
66 } 66 }
67 67
68 } // namespace chromeos 68 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/base_screen.h ('k') | chrome/browser/chromeos/login/screens/eula_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698