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

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

Issue 6688049: New InputMethod api for Views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add an OWNERS file. Created 9 years, 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 VIEWS_WIDGET_WIDGET_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_H_
6 #define VIEWS_WIDGET_WIDGET_H_ 6 #define VIEWS_WIDGET_WIDGET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 Widget(); 85 Widget();
86 virtual ~Widget(); 86 virtual ~Widget();
87 87
88 // Creates a Widget instance suitable for use as a transient popup. 88 // Creates a Widget instance suitable for use as a transient popup.
89 static Widget* CreatePopupWidget(const CreateParams& params); 89 static Widget* CreatePopupWidget(const CreateParams& params);
90 90
91 // Enumerates all windows pertaining to us and notifies their 91 // Enumerates all windows pertaining to us and notifies their
92 // view hierarchies that the locale has changed. 92 // view hierarchies that the locale has changed.
93 static void NotifyLocaleChanged(); 93 static void NotifyLocaleChanged();
94 94
95 // Converts a rectangle from one Widget's coordinate system to another's.
96 // Returns false if the conversion couldn't be made, because either these two
97 // Widgets do not have a common ancestor or they are not on the screen yet.
98 // The value of |*rect| won't be changed when false is returned.
99 static bool ConvertRect(const Widget* source,
100 const Widget* target,
101 gfx::Rect* rect);
102
95 // Unconverted methods ------------------------------------------------------- 103 // Unconverted methods -------------------------------------------------------
96 104
97 // TODO(beng): 105 // TODO(beng):
98 // Widget subclasses are still implementing these methods by overriding from 106 // Widget subclasses are still implementing these methods by overriding from
99 // here rather than by implementing NativeWidget. 107 // here rather than by implementing NativeWidget.
100 108
101 // Initialize the Widget with a parent and an initial desired size. 109 // Initialize the Widget with a parent and an initial desired size.
102 // |contents_view| is the view that will be the single child of RootView 110 // |contents_view| is the view that will be the single child of RootView
103 // within this Widget. As contents_view is inserted into RootView's tree, 111 // within this Widget. As contents_view is inserted into RootView's tree,
104 // RootView assumes ownership of this view and cleaning it up. If you remove 112 // RootView assumes ownership of this view and cleaning it up. If you remove
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 340
333 // The compositor for accelerated drawing. 341 // The compositor for accelerated drawing.
334 scoped_refptr<ui::Compositor> compositor_; 342 scoped_refptr<ui::Compositor> compositor_;
335 343
336 DISALLOW_COPY_AND_ASSIGN(Widget); 344 DISALLOW_COPY_AND_ASSIGN(Widget);
337 }; 345 };
338 346
339 } // namespace views 347 } // namespace views
340 348
341 #endif // VIEWS_WIDGET_WIDGET_H_ 349 #endif // VIEWS_WIDGET_WIDGET_H_
OLDNEW
« views/ime/text_input_client.h ('K') | « views/views.gyp ('k') | views/widget/widget_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698