summaryrefslogtreecommitdiffstats
path: root/chrome/views
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-13 18:22:22 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-13 18:22:22 +0000
commit2c379870fc171cfa718142cdc8fe7e308b0e0b37 (patch)
treedfb8ae13ea0f2ab8dff4a3db5e78d71619378471 /chrome/views
parent14c0a03a516a1904225068e135e30769f2b36cb4 (diff)
downloadchromium_src-2c379870fc171cfa718142cdc8fe7e308b0e0b37.zip
chromium_src-2c379870fc171cfa718142cdc8fe7e308b0e0b37.tar.gz
chromium_src-2c379870fc171cfa718142cdc8fe7e308b0e0b37.tar.bz2
Add a comment to the hwnd view about proper usage. I was using it incorrectly
in when trying to do some ui demos. Add a hook for the frame window test I'm doing. Review URL: http://codereview.chromium.org/58013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13605 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views')
-rw-r--r--chrome/views/controls/hwnd_view.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/views/controls/hwnd_view.h b/chrome/views/controls/hwnd_view.h
index d39fc2a..4667212 100644
--- a/chrome/views/controls/hwnd_view.h
+++ b/chrome/views/controls/hwnd_view.h
@@ -33,6 +33,9 @@ class HWNDView : public View {
// Attach a window handle to this View, making the window it represents
// subject to sizing according to this View's parent container's Layout
// Manager's sizing heuristics.
+ //
+ // This object should be added to the view hierarchy before calling this
+ // function, which will expect the parent to be valid.
void Attach(HWND hwnd);
// Detach the attached window handle. It will no longer be updated