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

Side by Side Diff: ui/views/widget/widget.h

Issue 10951033: Plumb ClearNativeFocus to DesktopRootWindowHostWin. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: get rid of FocusNativeView Created 8 years, 3 months 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 | « ui/views/widget/native_widget_win.cc ('k') | ui/views/widget/widget.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 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_
6 #define UI_VIEWS_WIDGET_WIDGET_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 // Notifies the view hierarchy contained in this widget that locale resources 483 // Notifies the view hierarchy contained in this widget that locale resources
484 // changed. 484 // changed.
485 void LocaleChanged(); 485 void LocaleChanged();
486 486
487 void SetFocusTraversableParent(FocusTraversable* parent); 487 void SetFocusTraversableParent(FocusTraversable* parent);
488 void SetFocusTraversableParentView(View* parent_view); 488 void SetFocusTraversableParentView(View* parent_view);
489 489
490 // Clear native focus set to the Widget's NativeWidget. 490 // Clear native focus set to the Widget's NativeWidget.
491 void ClearNativeFocus(); 491 void ClearNativeFocus();
492 492
493 // Sets the focus to |native_view|.
494 void FocusNativeView(gfx::NativeView native_view);
495
496 void set_frame_type(FrameType frame_type) { frame_type_ = frame_type; } 493 void set_frame_type(FrameType frame_type) { frame_type_ = frame_type; }
497 FrameType frame_type() const { return frame_type_; } 494 FrameType frame_type() const { return frame_type_; }
498 495
499 // Creates an appropriate NonClientFrameView for this widget. The 496 // Creates an appropriate NonClientFrameView for this widget. The
500 // WidgetDelegate is given the first opportunity to create one, followed by 497 // WidgetDelegate is given the first opportunity to create one, followed by
501 // the NativeWidget implementation. If both return NULL, a default one is 498 // the NativeWidget implementation. If both return NULL, a default one is
502 // created. 499 // created.
503 virtual NonClientFrameView* CreateNonClientFrameView(); 500 virtual NonClientFrameView* CreateNonClientFrameView();
504 501
505 // Whether we should be using a native frame. 502 // Whether we should be using a native frame.
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 791
795 // Is |root_layers_| out of date? 792 // Is |root_layers_| out of date?
796 bool root_layers_dirty_; 793 bool root_layers_dirty_;
797 794
798 DISALLOW_COPY_AND_ASSIGN(Widget); 795 DISALLOW_COPY_AND_ASSIGN(Widget);
799 }; 796 };
800 797
801 } // namespace views 798 } // namespace views
802 799
803 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 800 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698