| 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" |
| 11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
| 12 #include "chrome/browser/ui/browser_list.h" | 12 #include "chrome/browser/ui/browser_list.h" |
| 13 #include "chrome/browser/ui/views/html_dialog_view.h" | 13 #include "chrome/browser/ui/views/html_dialog_view.h" |
| 14 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
| 15 #include "views/view.h" |
| 16 #include "views/widget/widget.h" |
| 15 | 17 |
| 16 namespace { | 18 namespace { |
| 17 | 19 |
| 18 // Default width/height of the dialog. | 20 // Default width/height of the dialog. |
| 19 const int kDefaultWidth = 350; | 21 const int kDefaultWidth = 350; |
| 20 const int kDefaultHeight = 225; | 22 const int kDefaultHeight = 225; |
| 21 | 23 |
| 22 // Width/height for the change PIN dialog mode. | 24 // Width/height for the change PIN dialog mode. |
| 23 const int kChangePinWidth = 350; | 25 const int kChangePinWidth = 350; |
| 24 const int kChangePinHeight = 245; | 26 const int kChangePinHeight = 245; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 bool SimDialogDelegate::ShouldShowDialogTitle() const { | 122 bool SimDialogDelegate::ShouldShowDialogTitle() const { |
| 121 return false; | 123 return false; |
| 122 } | 124 } |
| 123 | 125 |
| 124 bool SimDialogDelegate::HandleContextMenu(const ContextMenuParams& params) { | 126 bool SimDialogDelegate::HandleContextMenu(const ContextMenuParams& params) { |
| 125 // Disable context menu. | 127 // Disable context menu. |
| 126 return true; | 128 return true; |
| 127 } | 129 } |
| 128 | 130 |
| 129 } // namespace chromeos | 131 } // namespace chromeos |
| OLD | NEW |