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

Side by Side Diff: ash/shell/lock_view.cc

Issue 103493005: Rename View::set_focusable and View::set_accessibility_focusable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a few missing files Created 7 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 | Annotate | Revision Log
« no previous file with comments | « ash/shelf/shelf_button.cc ('k') | ash/system/chromeos/audio/tray_audio.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ash/session_state_delegate.h" 5 #include "ash/session_state_delegate.h"
6 #include "ash/shell.h" 6 #include "ash/shell.h"
7 #include "ash/shell_window_ids.h" 7 #include "ash/shell_window_ids.h"
8 #include "ash/shell/example_factory.h" 8 #include "ash/shell/example_factory.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "ui/aura/root_window.h" 10 #include "ui/aura/root_window.h"
(...skipping 10 matching lines...) Expand all
21 namespace ash { 21 namespace ash {
22 namespace shell { 22 namespace shell {
23 23
24 class LockView : public views::WidgetDelegateView, 24 class LockView : public views::WidgetDelegateView,
25 public views::ButtonListener { 25 public views::ButtonListener {
26 public: 26 public:
27 LockView() 27 LockView()
28 : unlock_button_(new views::LabelButton(this, ASCIIToUTF16("Unlock"))) { 28 : unlock_button_(new views::LabelButton(this, ASCIIToUTF16("Unlock"))) {
29 unlock_button_->SetStyle(views::Button::STYLE_NATIVE_TEXTBUTTON); 29 unlock_button_->SetStyle(views::Button::STYLE_NATIVE_TEXTBUTTON);
30 AddChildView(unlock_button_); 30 AddChildView(unlock_button_);
31 unlock_button_->set_focusable(true); 31 unlock_button_->SetFocusable(true);
32 } 32 }
33 virtual ~LockView() {} 33 virtual ~LockView() {}
34 34
35 // Overridden from views::View: 35 // Overridden from views::View:
36 virtual gfx::Size GetPreferredSize() OVERRIDE { 36 virtual gfx::Size GetPreferredSize() OVERRIDE {
37 return gfx::Size(500, 400); 37 return gfx::Size(500, 400);
38 } 38 }
39 39
40 private: 40 private:
41 // Overridden from views::View: 41 // Overridden from views::View:
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 widget->GetNativeView()->SetName("LockView"); 100 widget->GetNativeView()->SetName("LockView");
101 widget->GetNativeView()->Focus(); 101 widget->GetNativeView()->Focus();
102 102
103 // TODO: it shouldn't be necessary to invoke UpdateTooltip() here. 103 // TODO: it shouldn't be necessary to invoke UpdateTooltip() here.
104 Shell::GetInstance()->tooltip_controller()->UpdateTooltip( 104 Shell::GetInstance()->tooltip_controller()->UpdateTooltip(
105 widget->GetNativeView()); 105 widget->GetNativeView());
106 } 106 }
107 107
108 } // namespace shell 108 } // namespace shell
109 } // namespace ash 109 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shelf/shelf_button.cc ('k') | ash/system/chromeos/audio/tray_audio.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698