OLD | NEW |
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/sim_dialog_delegate.h" | 5 #include "chrome/browser/chromeos/sim_dialog_delegate.h" |
6 | 6 |
7 #include "base/stringprintf.h" | 7 #include "base/stringprintf.h" |
8 #include "chrome/browser/chromeos/frame/bubble_window.h" | 8 #include "chrome/browser/chromeos/frame/bubble_window.h" |
9 #include "chrome/browser/chromeos/login/user_manager.h" | 9 #include "chrome/browser/chromeos/login/user_manager.h" |
10 #include "chrome/browser/profiles/profile_manager.h" | 10 #include "chrome/browser/profiles/profile_manager.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 : dialog_mode_(dialog_mode) { | 64 : dialog_mode_(dialog_mode) { |
65 } | 65 } |
66 | 66 |
67 SimDialogDelegate::~SimDialogDelegate() { | 67 SimDialogDelegate::~SimDialogDelegate() { |
68 } | 68 } |
69 | 69 |
70 bool SimDialogDelegate::IsDialogModal() const { | 70 bool SimDialogDelegate::IsDialogModal() const { |
71 return true; | 71 return true; |
72 } | 72 } |
73 | 73 |
74 std::wstring SimDialogDelegate::GetDialogTitle() const { | 74 string16 SimDialogDelegate::GetDialogTitle() const { |
75 return std::wstring(); | 75 return string16(); |
76 } | 76 } |
77 | 77 |
78 GURL SimDialogDelegate::GetDialogContentURL() const { | 78 GURL SimDialogDelegate::GetDialogContentURL() const { |
79 if (dialog_mode_ == SIM_DIALOG_UNLOCK) { | 79 if (dialog_mode_ == SIM_DIALOG_UNLOCK) { |
80 std::string url_string(chrome::kChromeUISimUnlockURL); | 80 std::string url_string(chrome::kChromeUISimUnlockURL); |
81 return GURL(url_string); | 81 return GURL(url_string); |
82 } else { | 82 } else { |
83 std::string mode_value; | 83 std::string mode_value; |
84 if (dialog_mode_ == SIM_DIALOG_CHANGE_PIN) | 84 if (dialog_mode_ == SIM_DIALOG_CHANGE_PIN) |
85 mode_value = kSimDialogChangePinMode; | 85 mode_value = kSimDialogChangePinMode; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 bool SimDialogDelegate::ShouldShowDialogTitle() const { | 120 bool SimDialogDelegate::ShouldShowDialogTitle() const { |
121 return false; | 121 return false; |
122 } | 122 } |
123 | 123 |
124 bool SimDialogDelegate::HandleContextMenu(const ContextMenuParams& params) { | 124 bool SimDialogDelegate::HandleContextMenu(const ContextMenuParams& params) { |
125 // Disable context menu. | 125 // Disable context menu. |
126 return true; | 126 return true; |
127 } | 127 } |
128 | 128 |
129 } // namespace chromeos | 129 } // namespace chromeos |
OLD | NEW |