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

Side by Side Diff: chrome/views/hwnd_view.h

Issue 21439: Fix for focus traversal issue in Gears dialogs (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « chrome/views/dialog_delegate.cc ('k') | chrome/views/hwnd_view.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_HWND_VIEW_H__ 5 #ifndef CHROME_VIEWS_HWND_VIEW_H__
6 #define CHROME_VIEWS_HWND_VIEW_H__ 6 #define CHROME_VIEWS_HWND_VIEW_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/views/view.h" 10 #include "chrome/views/view.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void SetAssociatedFocusView(View* view); 62 void SetAssociatedFocusView(View* view);
63 63
64 void set_fast_resize(bool fast_resize) { fast_resize_ = fast_resize; } 64 void set_fast_resize(bool fast_resize) { fast_resize_ = fast_resize; }
65 65
66 protected: 66 protected:
67 virtual void ViewHierarchyChanged(bool is_add, View *parent, View *child); 67 virtual void ViewHierarchyChanged(bool is_add, View *parent, View *child);
68 68
69 // Notification that our visible bounds relative to the root has changed. 69 // Notification that our visible bounds relative to the root has changed.
70 // This updates the bounds of the HWND. 70 // This updates the bounds of the HWND.
71 virtual void VisibleBoundsInRootChanged(); 71 virtual void VisibleBoundsInRootChanged();
72
73 virtual void Focus();
72 74
73 private: 75 private:
74 // The hosted window handle. 76 // The hosted window handle.
75 HWND hwnd_; 77 HWND hwnd_;
76 78
77 // The preferred size of this View 79 // The preferred size of this View
78 gfx::Size preferred_size_; 80 gfx::Size preferred_size_;
79 81
80 // Have we installed a region on the HWND used to clip to only the visible 82 // Have we installed a region on the HWND used to clip to only the visible
81 // portion of the HWND? 83 // portion of the HWND?
82 bool installed_clip_; 84 bool installed_clip_;
83 85
84 // Fast resizing will move the hwnd and clip its window region, this will 86 // Fast resizing will move the hwnd and clip its window region, this will
85 // result in white areas and will not resize the content (so scrollbars 87 // result in white areas and will not resize the content (so scrollbars
86 // will be all wrong and content will flow offscreen). Only use this 88 // will be all wrong and content will flow offscreen). Only use this
87 // when you're doing extremely quick, high-framerate vertical resizes 89 // when you're doing extremely quick, high-framerate vertical resizes
88 // and don't care about accuracy. Make sure you do a real resize at the 90 // and don't care about accuracy. Make sure you do a real resize at the
89 // end. USE WITH CAUTION. 91 // end. USE WITH CAUTION.
90 bool fast_resize_; 92 bool fast_resize_;
91 93
92 // The view that should be given focus when this HWNDView is focused. 94 // The view that should be given focus when this HWNDView is focused.
93 View* focus_view_; 95 View* focus_view_;
94 }; 96 };
95 97
96 } // namespace views 98 } // namespace views
97 99
98 #endif // CHROME_VIEWS_HWND_VIEW_H__ 100 #endif // CHROME_VIEWS_HWND_VIEW_H__
99 101
OLDNEW
« no previous file with comments | « chrome/views/dialog_delegate.cc ('k') | chrome/views/hwnd_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698