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

Unified Diff: views/widget/widget.cc

Issue 6976040: Revert 86914 - Move a bunch of functions from Window onto Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/widget/widget.h ('k') | views/window/native_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget.cc
===================================================================
--- views/widget/widget.cc (revision 86938)
+++ views/widget/widget.cc (working copy)
@@ -213,46 +213,18 @@
native_widget_->Hide();
}
-void Widget::Activate() {
- native_widget_->Activate();
-}
-
-void Widget::Deactivate() {
- native_widget_->Deactivate();
-}
-
bool Widget::IsActive() const {
return native_widget_->IsActive();
}
-void Widget::SetAlwaysOnTop(bool on_top) {
- native_widget_->SetAlwaysOnTop(on_top);
-}
-
-void Widget::Maximize() {
- native_widget_->Maximize();
-}
-
-void Widget::Minimize() {
- native_widget_->Minimize();
-}
-
-void Widget::Restore() {
- native_widget_->Restore();
-}
-
-bool Widget::IsMaximized() const {
- return native_widget_->IsMaximized();
-}
-
-bool Widget::IsMinimized() const {
- return native_widget_->IsMinimized();
-}
-
void Widget::SetOpacity(unsigned char opacity) {
native_widget_->SetOpacity(opacity);
}
+void Widget::SetAlwaysOnTop(bool on_top) {
+ native_widget_->SetAlwaysOnTop(on_top);
+}
+
View* Widget::GetRootView() {
if (!root_view_.get()) {
// First time the root view is being asked for, create it now.
« no previous file with comments | « views/widget/widget.h ('k') | views/window/native_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698