OLD | NEW |
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 #include "chrome/browser/chromeos/sim_dialog_delegate.h" | 5 #include "chrome/browser/chromeos/sim_dialog_delegate.h" |
6 | 6 |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "chrome/browser/chromeos/login/user_manager.h" | 8 #include "chrome/browser/chromeos/login/user_manager.h" |
9 #include "chrome/browser/profiles/profile_manager.h" | 9 #include "chrome/browser/profiles/profile_manager.h" |
10 #include "chrome/browser/ui/browser_dialogs.h" | 10 #include "chrome/browser/ui/browser_dialogs.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 } | 54 } |
55 | 55 |
56 SimDialogDelegate::~SimDialogDelegate() { | 56 SimDialogDelegate::~SimDialogDelegate() { |
57 } | 57 } |
58 | 58 |
59 ui::ModalType SimDialogDelegate::GetDialogModalType() const { | 59 ui::ModalType SimDialogDelegate::GetDialogModalType() const { |
60 return ui::MODAL_TYPE_SYSTEM; | 60 return ui::MODAL_TYPE_SYSTEM; |
61 } | 61 } |
62 | 62 |
63 string16 SimDialogDelegate::GetDialogTitle() const { | 63 string16 SimDialogDelegate::GetDialogTitle() const { |
64 return string16(); | 64 return base::string16(); |
65 } | 65 } |
66 | 66 |
67 GURL SimDialogDelegate::GetDialogContentURL() const { | 67 GURL SimDialogDelegate::GetDialogContentURL() const { |
68 if (dialog_mode_ == SIM_DIALOG_UNLOCK) { | 68 if (dialog_mode_ == SIM_DIALOG_UNLOCK) { |
69 std::string url_string(chrome::kChromeUISimUnlockURL); | 69 std::string url_string(chrome::kChromeUISimUnlockURL); |
70 return GURL(url_string); | 70 return GURL(url_string); |
71 } else { | 71 } else { |
72 std::string mode_value; | 72 std::string mode_value; |
73 if (dialog_mode_ == SIM_DIALOG_CHANGE_PIN) | 73 if (dialog_mode_ == SIM_DIALOG_CHANGE_PIN) |
74 mode_value = kSimDialogChangePinMode; | 74 mode_value = kSimDialogChangePinMode; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 return false; | 111 return false; |
112 } | 112 } |
113 | 113 |
114 bool SimDialogDelegate::HandleContextMenu( | 114 bool SimDialogDelegate::HandleContextMenu( |
115 const content::ContextMenuParams& params) { | 115 const content::ContextMenuParams& params) { |
116 // Disable context menu. | 116 // Disable context menu. |
117 return true; | 117 return true; |
118 } | 118 } |
119 | 119 |
120 } // namespace chromeos | 120 } // namespace chromeos |
OLD | NEW |