summaryrefslogtreecommitdiffstats
path: root/views/widget/widget.h
Commit message (Collapse)AuthorAgeFilesLines
* views: Move widget/ directory to ui/views.tfarina@chromium.org2011-11-221-746/+0
| | | | | | | | | | | BUG=104039 R=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110949 Review URL: http://codereview.chromium.org/8598031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111077 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "views: Move widget/ directory to ui/views." properly.wez@chromium.org2011-11-211-0/+746
| | | | | | Review URL: http://codereview.chromium.org/8562003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110960 0039d316-1c4b-4281-b951-d872f2087c98
* views: Move widget/ directory to ui/views.tfarina@chromium.org2011-11-211-746/+0
| | | | | | | | | BUG=104039 R=ben@chromium.org Review URL: http://codereview.chromium.org/8598031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110949 0039d316-1c4b-4281-b951-d872f2087c98
* views: Delete bubble, events, focus, layout directories and its stubbed files.tfarina@chromium.org2011-11-181-1/+1
| | | | | | | | | BUG=104039 R=ben@chromium.org Review URL: http://codereview.chromium.org/8566052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110787 0039d316-1c4b-4281-b951-d872f2087c98
* [Aura] Fix HtmlDialogBrowserTest.SizeWindow.xiyuan@chromium.org2011-11-181-3/+0
| | | | | | | | | | | | | | | - Fix HtmlDialogBrowserTest.SizeWindow for Linux + Aura + Chromeos==0. - Remove minimum_size_ from auralWindow and add an OnBoundsChanging to aura::WindowDelegate so that a delegate can apply bounds constriant; - NativeWidgetAura uses OnBoundsChanging to apply Widget's minimum size; - Remove minimum_size_ member from Widget because it is only used for widget with no frame (i.e. no non_client_view_) and such widget should have no minimum size; BUG=104412 TEST=Verify the HtmlDialogBrowserTest.SizeWindow should pass for Linux + Aura + Chromeos==0. Review URL: http://codereview.chromium.org/8574049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110608 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded forward declarations in views.thestig@chromium.org2011-11-151-3/+2
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8536004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110047 0039d316-1c4b-4281-b951-d872f2087c98
* views: Remove the old views/window/ directory and its stubbed files.tfarina@chromium.org2011-11-141-2/+2
| | | | | | | | | BUG=104039 R=ben@chromium.org Review URL: http://codereview.chromium.org/8497067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109887 0039d316-1c4b-4281-b951-d872f2087c98
* Aura: Widgets obey transparency flag, default to opaquejamescook@chromium.org2011-11-101-0/+3
| | | | | | | | | | | NativeWidgetAura now respects the Widget::InitParams flag for transparency with respect to setting its layer opaque. This means that Aura widgets are now opaque by default, including the main Chrome browser window. BUG=none TEST=none Review URL: http://codereview.chromium.org/8510023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109343 0039d316-1c4b-4281-b951-d872f2087c98
* Adds Window::MoveChildToFront, with surrounding changes.sky@chromium.org2011-11-081-6/+4
| | | | | | | | | | BUG=102580 102578 TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8477019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109032 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Win dbg shared build; export Widget::Observer.msw@chromium.org2011-11-071-1/+1
| | | | | | | | | | BUG=none TEST=Fixes Win dbg shared builder. TBR=ben@chromium.org Review URL: http://codereview.chromium.org/8477039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108917 0039d316-1c4b-4281-b951-d872f2087c98
* Gets disable inactive frame rendering to work correctly for aura. Thissky@chromium.org2011-11-011-4/+8
| | | | | | | | | | | | is needed for bubbles. BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8351042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108179 0039d316-1c4b-4281-b951-d872f2087c98
* Convert View::HasFocus() to be const. Required adding const versions of ↵pkasting@chromium.org2011-10-261-0/+1
| | | | | | | | | | some accessors which in turn prompted me to make some uses of these accessors be a bit more const-correct. BUG=none TEST=none Review URL: http://codereview.chromium.org/8393024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107403 0039d316-1c4b-4281-b951-d872f2087c98
* Changes Window::Init to take whether the layer has a texture. Andsky@chromium.org2011-10-261-0/+3
| | | | | | | | | | | | wired it up to Widget by way of new field in Widget::InitParam. BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8392005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107354 0039d316-1c4b-4281-b951-d872f2087c98
* Adds transient children to Window. A transient child is owned by thesky@chromium.org2011-10-261-0/+4
| | | | | | | | | | | | | transient parent and is forced to always be on top of transient parent (assuming they have the same parent). BUG=100088 TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8391027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107348 0039d316-1c4b-4281-b951-d872f2087c98
* ui::TestCompositor::TestCompositor() constructor has been changed to take a ↵backer@chromium.org2011-10-251-10/+0
| | | | | | | | | | | a CompositorDelegate* as a parameter. It can be NULL to get the same behaviour as before. But some tests actually require ScheduleDraw() to cause a draw to happen, in order to test that their real delegate is doing its job. Also, we move the compositor_factory from views::Widget and aura::Desktop to ui::Compositor. BUG=101091 TEST=bots stay green Review URL: http://codereview.chromium.org/8240006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107103 0039d316-1c4b-4281-b951-d872f2087c98
* Minimum size for aura windowoshima@google.com2011-10-171-1/+1
| | | | | | | | | | | | | Update restore bounds when SetBounds is called in Fullscreen/Maximized mode. EventGenerator to generate fake events for various mouse operatings. BUG=none TEST=added test case for SetBounds in fullscreen/maximized mode. Added ToplevelWindow test that tests various toplevel operations. Review URL: http://codereview.chromium.org/8273040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105882 0039d316-1c4b-4281-b951-d872f2087c98
* Reorder Layers with NativeWidgetViews.backer@chromium.org2011-10-081-0/+3
| | | | | | | | | | | The presence of NativeWidgetViews complicates the process of keeping the Layer tree in sync with the View tree. Specifically, when walking up the View tree to find a View with a Layer, we may have to walk up through a NativeWidgetViews to a NativeWidgetView in a different View tree. Similarly, when walking down the tree to find Views with Layers, we may have to walk down through a NativeWidgetView to a NativeWidgetViews. BUG=none TEST=none Review URL: http://codereview.chromium.org/8201008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104654 0039d316-1c4b-4281-b951-d872f2087c98
* Do not allocate a texture if hole covers entire layer.pkotwicz@chromium.org2011-09-271-2/+0
| | | | | | | | | BUG=None TEST= poster circle, at 35FPS on tegra2 hardware Review URL: http://codereview.chromium.org/7976004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102925 0039d316-1c4b-4281-b951-d872f2087c98
* views: Make mouse state member variables private to Widget.tfarina@chromium.org2011-09-211-16/+14
| | | | | | | | | | Note: This was a TODO for msw@. R=ben@chromium.org Review URL: http://codereview.chromium.org/7930014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102102 0039d316-1c4b-4281-b951-d872f2087c98
* Relanding 100792oshima@google.com2011-09-201-0/+5
| | | | | | | | | | | | | | | | | | Use TabContentsViewViews for RenderWidgetHostViweViews. * Removed TabContentsViewTouch. * Changed so that mouse and resize event goes through NativeWidgetViews so that NativeTabContentsViewViews can invoke NativeTabContentsViewDelegates. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100792 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100834 Review URL: http://codereview.chromium.org/7460001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101921 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes regression in menu painting on windows. The regression happenedsky@chromium.org2011-09-201-0/+3
| | | | | | | | | | | | | | | from a change that resulted in shrinking the client area one pixel when it shouldn't have. I've changed the code to respect whether we should shrink the client area by one pixel. BUG=96505 TEST=make sure menus on windows aren't truncated anymore. Truncation is most noticable over remote desktop. R=ben@chromium.org Review URL: http://codereview.chromium.org/7974001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101914 0039d316-1c4b-4281-b951-d872f2087c98
* re-checkin http://codereview.chromium.org/7720001/ to add bubble views.saintlou@chromium.org2011-09-191-3/+4
| | | | | | | | | | | | The patch caused memory leak in views_unittests. added patch http://codereview.chromium.org/7858015/ to fix unittests memory leak. BUG=none TEST=none Review URL: http://codereview.chromium.org/7831071 Patch from Alice Tull <alicet@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101739 0039d316-1c4b-4281-b951-d872f2087c98
* views: Remove unused Widget::WindowInitParams() function.tfarina@chromium.org2011-09-161-1/+0
| | | | | | | | R=ben@chromium.org Review URL: http://codereview.chromium.org/7925017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101553 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Relanding 100792"oshima@google.com2011-09-141-3/+0
| | | | | | | | | | | | This reverts commit 1de05c148460b26037b069501c19ee0c20aeb4ad. TBR=backer@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/7888049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101131 0039d316-1c4b-4281-b951-d872f2087c98
* Rework View Layer Draw() to use the Layer::DrawTree() method and the ↵ben@chromium.org2011-09-131-2/+2
| | | | | | | | | | LayerDelegate. http://crbug.com/93947 TEST=none Review URL: http://codereview.chromium.org/7845033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100961 0039d316-1c4b-4281-b951-d872f2087c98
* Relanding 100792oshima@google.com2011-09-131-0/+3
| | | | | | | | | | | | | | | | Use TabContentsViewViews for RenderWidgetHostViweViews. * Removed TabContentsViewTouch. * Changed so that mouse and resize event goes through NativeWidgetViews so that NativeTabContentsViewViews can invoke NativeTabContentsViewDelegates. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100792 Review URL: http://codereview.chromium.org/7460001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100834 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 100792 "Use TabContentsViewViews for RenderWidgetHostViweViews."oshima@google.com2011-09-131-3/+0
| | | | | | | | | | | This reverts commit a8938434c75e2a7300e04c1f23fe363bdcb67bc6. BUG=none TEST=none Review URL: http://codereview.chromium.org/7878008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100812 0039d316-1c4b-4281-b951-d872f2087c98
* Use TabContentsViewViews for RenderWidgetHostViweViews.oshima@google.com2011-09-121-0/+3
| | | | | | | | | | | | * Removed TabContentsViewTouch. * Changed so that mouse and resize event goes through NativeWidgetViews so that NativeTabContentsViewViews can invoke NativeTabContentsViewDelegates. BUG=none TEST=none Review URL: http://codereview.chromium.org/7460001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100792 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 100231 - memory bot failuresestade@chromium.org2011-09-091-4/+3
| | | | | | | | | | | | | | | r100231 was: add bubble views files. BUG=none TEST=none Review URL: http://codereview.chromium.org/7720001 TBR=alicet@chromium.org Review URL: http://codereview.chromium.org/7860025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100331 0039d316-1c4b-4281-b951-d872f2087c98
* add bubble views files.alicet@chromium.org2011-09-081-3/+4
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7720001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100231 0039d316-1c4b-4281-b951-d872f2087c98
* Restoring a session should restore window minimization state on Windowsdhollowa@chromium.org2011-08-311-9/+14
| | | | | | | | | | | | | These changes enable save and restore of minimized window state on Windows. (Mac and Linux came prior). The window state is now saved whenever size-changed notifications fire (in addition to the original activation and close cases). BUG=43274 TEST=Manual. Launch Chrome on Windows, create two browser windows, minimize "a" window, quit. Relaunch, expect "a" to be minimized. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98679 Review URL: http://codereview.chromium.org/7748036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99077 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 98679 - Restoring a session should restore window minimization state ↵dhollowa@chromium.org2011-08-291-14/+9
| | | | | | | | | | | | | | | | | on Windows These changes enable save and restore of minimized window state on Windows. (Mac and Linux came prior). The window state is now saved whenever size-changed notifications fire (in addition to the original activation and close cases). BUG=43274 TEST=Manual. Launch Chrome on Windows, create two browser windows, minimize "a" window, quit. Relaunch, expect "a" to be minimized. Review URL: http://codereview.chromium.org/7748036 TBR=dhollowa@chromium.org Review URL: http://codereview.chromium.org/7790010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98699 0039d316-1c4b-4281-b951-d872f2087c98
* Restoring a session should restore window minimization state on Windowsdhollowa@chromium.org2011-08-291-9/+14
| | | | | | | | | | | | These changes enable save and restore of minimized window state on Windows. (Mac and Linux came prior). The window state is now saved whenever size-changed notifications fire (in addition to the original activation and close cases). BUG=43274 TEST=Manual. Launch Chrome on Windows, create two browser windows, minimize "a" window, quit. Relaunch, expect "a" to be minimized. Review URL: http://codereview.chromium.org/7748036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98679 0039d316-1c4b-4281-b951-d872f2087c98
* Reverts debugging code added for 91396. I've tracked down the bug andsky@chromium.org2011-08-261-20/+0
| | | | | | | | | | | | | | | will do a patch after this so that it can be cleanly merged over. TBR since it's just a revert. BUG=91396 TEST=none R=ben@chromium.org TBR=ben@chromium.org Review URL: http://codereview.chromium.org/7745049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98451 0039d316-1c4b-4281-b951-d872f2087c98
* Adds yet more debugging in hopes of tracking 91396. The latest datasky@chromium.org2011-08-251-0/+20
| | | | | | | | | | | | | | | | | | indicates FindPreference is returning NULL and we're in shutdown because the last window is being closed. I suspect that for some reason on some machines this triggers us to get a WM_CLOSE after we've removed the property used to lookup the profile (removed in WM_DESTROY) so that we fall back to the local state prefs which don't have a property for window position and we crash. I'm adding debugging code to determine whether that is in fact happening. BUG=91396 TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/7727001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98180 0039d316-1c4b-4281-b951-d872f2087c98
* Move input_method to widgetoshima@google.com2011-08-231-7/+29
| | | | | | | | | BUG=none TEST=none. no new functionality. all tests should pass. Review URL: http://codereview.chromium.org/7371007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97819 0039d316-1c4b-4281-b951-d872f2087c98
* Simple WindowManager that can move/resize window.oshima@google.com2011-08-191-2/+9
| | | | | | | | | | | | | | Fixes TouchFrame's NonClientHitTest to ignore VirtualKeyboard area. Move mouse capture logic to Window Manager so that nested mouse capture with nested NWVs works correctly. Note1: This is a tentative WM that allows us to move/resize window in views desktop until we have real window manager based on aura/layer API. Note2: There is an compositor related issue and doesn't work well when compositor is enabled. I'll look into it after this CL. Review URL: http://codereview.chromium.org/7530017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97492 0039d316-1c4b-4281-b951-d872f2087c98
* Rename VIEWS_API to VIEWS_EXPORT.darin@chromium.org2011-08-051-3/+3
| | | | | | | R=rvargas@chromium.org Review URL: http://codereview.chromium.org/7550038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95651 0039d316-1c4b-4281-b951-d872f2087c98
* Shell of implementation for embedded windows. At this point this issky@chromium.org2011-07-291-3/+1
| | | | | | | | | | | | | | | | | just a proof of concept. Next step is going to be pulling code from the window manager into this. Desktop will likely be renamed to WindowManager. At this point just make sure you think I'm not going off into the weeds. BUG=none TEST=none R=derat@chromium.org Review URL: http://codereview.chromium.org/7534002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94733 0039d316-1c4b-4281-b951-d872f2087c98
* Create views.dll / libviews.sodarin@chromium.org2011-07-281-3/+3
| | | | | | | R=sky@chromium.org,rvargas@chromium.org Review URL: http://codereview.chromium.org/7493017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94428 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes crash introduced by fix for 11229. The fix for 11229 made it sosky@chromium.org2011-07-211-1/+2
| | | | | | | | | | | | | | | | we might pass a bounds and maximized request when creating a browser window. If for whatever reason that size isn't valid (say doesn't fit on the monitor), then CreateWindow calls WM_POSCHANGED. The current code didn't handle this too well because not all the state has been set up yet. BUG=89843 TEST=none R=pkasting@chromium.org Review URL: http://codereview.chromium.org/7466017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93319 0039d316-1c4b-4281-b951-d872f2087c98
* views capture: Fix mouse-event location and reset capture view.sadrul@chromium.org2011-07-191-0/+1
| | | | | | | | | BUG=none TEST=WidgetTest.GrabUngrab, and run views-desktop, click on a window the minize, click on the second window to minimize. Both should minize correctly. Review URL: http://codereview.chromium.org/7432008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93129 0039d316-1c4b-4281-b951-d872f2087c98
* Makes sure widget is created at right size before showingsky@chromium.org2011-07-191-0/+10
| | | | | | | | | | | | | | it. Previously if we were going to maximize the window we would first create it at the restored size, then maximize it. On slower machines this could result in a noticeable relayout of the web page. BUG=11229 TEST=see bug. R=ben@chromium.org Review URL: http://codereview.chromium.org/7358005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93067 0039d316-1c4b-4281-b951-d872f2087c98
* Move debug paint flag to Widget so native widget can use the same flag.oshima@google.com2011-07-161-0/+4
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7398014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92779 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up FocusManageroshima@google.com2011-07-141-0/+3
| | | | | | | | | | | | | | Use Widget API to get FocusManager for native_view/window. Move FocusNatieView to native widget impl. This is necessary for NativeWidgetX BUG=none TEST=none Review URL: http://codereview.chromium.org/7351008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92497 0039d316-1c4b-4281-b951-d872f2087c98
* Move SetInitialFocus to Widgetoshima@google.com2011-07-141-0/+15
| | | | | | | | | | | | | | Create InputMethod object per Top level NativeWidgetView - use MockInputMethod when IBUS is not available for now. Call OnNativeWidgetActivationChanged when activation changed. Handle InputFocus change when activation changed. This is temp solution until we have WM in place. BUG=none TEST=none Review URL: http://codereview.chromium.org/7353009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92495 0039d316-1c4b-4281-b951-d872f2087c98
* Add Widget::Observer for observing Widgets.sadrul@chromium.org2011-07-131-0/+17
| | | | | | | | | | | | Use this new observation technique to avoid a crash in views-desktop when the active widget is closed. BUG=none TEST=Run views_desktop, close a window, click, it doesn't crash! Review URL: http://codereview.chromium.org/7342015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92415 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused ContainsNativeView methods.ben@chromium.org2011-07-131-5/+0
| | | | | | | | | | BUG=none TEST=none TBR=sky Review URL: http://codereview.chromium.org/7352001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92305 0039d316-1c4b-4281-b951-d872f2087c98
* ClearNativeFocus: Do it from widget, with appropriate native-widget ↵sadrul@chromium.org2011-07-131-0/+3
| | | | | | | | | | | implementation. BUG=none TEST=none Review URL: http://codereview.chromium.org/7353007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92303 0039d316-1c4b-4281-b951-d872f2087c98
* Fix NativeWidgetViews enough to run views_examples without segfaulting.rhashimoto@google.com2011-07-111-0/+5
| | | | | | | | | BUG=chromium:85585 TEST=run views_examples Review URL: http://codereview.chromium.org/7237064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92039 0039d316-1c4b-4281-b951-d872f2087c98