Lines Matching refs:view
17 #include "mojo/services/public/cpp/view_manager/view.h"
47 virtual void Layout(views::View* host) OVERRIDE {
48 // Browser view has one child, a text input field.
50 views::View* text_field = host->child_at(0);
54 virtual gfx::Size GetPreferredSize(const views::View* host) const OVERRIDE {
74 View* view)
77 view_(view),
94 void ShowKeyboard(views::View* view) {
95 if (focused_view_ == view)
99 view->ConvertRectToWidget(gfx::Rect(view->bounds().size()));
103 // TODO(sky): listen for view to be removed.
104 focused_view_ = view;
117 virtual void OnWillChangeFocus(views::View* focused_before,
118 views::View* focused_now) OVERRIDE {
120 virtual void OnDidChangeFocus(views::View* focused_before,
121 views::View* focused_now) OVERRIDE {
128 views::View* focused_now = widget_->GetFocusManager()->GetFocusedView();
143 View* view_;
145 views::View* focused_view_;
182 void CreateWidget(View* view) {
196 params.native_widget = new NativeWidgetViewManager(widget_, view);
198 params.bounds = gfx::Rect(view->bounds().width(), view->bounds().height());
201 new KeyboardManager(widget_, window_manager_.get(), view);
208 View* root,
240 virtual void OnViewFocusChanged(View* gained_focus,
241 View* lost_focus) OVERRIDE {
249 virtual void OnViewDestroyed(View* view) OVERRIDE {
250 DCHECK_EQ(root_, view);
251 view->RemoveObserver(this);
259 View* root_;