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

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

Issue 10985029: linux_aura: Fix cursors and popup menu location (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 8 years, 2 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/desktop_root_window_host_linux.cc ('k') | no next file » | 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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 // are added to. The default implementation returns the contents view 597 // are added to. The default implementation returns the contents view
598 // if it exists and the root view otherwise. 598 // if it exists and the root view otherwise.
599 virtual View* GetChildViewParent(); 599 virtual View* GetChildViewParent();
600 600
601 // True if the widget is considered top level widget. Top level widget 601 // True if the widget is considered top level widget. Top level widget
602 // is a widget of TYPE_WINDOW, TYPE_PANEL, TYPE_WINDOW_FRAMELESS, BUBBLE, 602 // is a widget of TYPE_WINDOW, TYPE_PANEL, TYPE_WINDOW_FRAMELESS, BUBBLE,
603 // POPUP or MENU, and has a focus manager and input method object associated 603 // POPUP or MENU, and has a focus manager and input method object associated
604 // with it. TYPE_CONTROL and TYPE_TOOLTIP is not considered top level. 604 // with it. TYPE_CONTROL and TYPE_TOOLTIP is not considered top level.
605 bool is_top_level() const { return is_top_level_; } 605 bool is_top_level() const { return is_top_level_; }
606 606
607 // Returns the work are bounds of the screen the Widget belongs to. 607 // Returns the work area bounds of the screen the Widget belongs to.
608 gfx::Rect GetWorkAreaBoundsInScreen() const; 608 gfx::Rect GetWorkAreaBoundsInScreen() const;
609 609
610 // Notification that our owner is closing. 610 // Notification that our owner is closing.
611 // NOTE: this is not invoked for aura as it's currently not needed there. 611 // NOTE: this is not invoked for aura as it's currently not needed there.
612 // Under aura menus close by way of activation getting reset when the owner 612 // Under aura menus close by way of activation getting reset when the owner
613 // closes. 613 // closes.
614 virtual void OnOwnerClosing(); 614 virtual void OnOwnerClosing();
615 615
616 // Overridden from NativeWidgetDelegate: 616 // Overridden from NativeWidgetDelegate:
617 virtual bool IsModal() const OVERRIDE; 617 virtual bool IsModal() const OVERRIDE;
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 794
795 // Is |root_layers_| out of date? 795 // Is |root_layers_| out of date?
796 bool root_layers_dirty_; 796 bool root_layers_dirty_;
797 797
798 DISALLOW_COPY_AND_ASSIGN(Widget); 798 DISALLOW_COPY_AND_ASSIGN(Widget);
799 }; 799 };
800 800
801 } // namespace views 801 } // namespace views
802 802
803 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 803 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_root_window_host_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698