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

Unified Diff: ui/base/cocoa/window_size_constants.h

Issue 10003005: Zero-sized windows are bad. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: formatting Created 8 years, 8 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 | « ui/base/cocoa/underlay_opengl_hosting_window.mm ('k') | ui/base/cocoa/window_size_constants.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cocoa/window_size_constants.h
diff --git a/ui/base/cocoa/window_size_constants.h b/ui/base/cocoa/window_size_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..9f333365743f35b5b11b89b0ba6991c3ea6d0f20
--- /dev/null
+++ b/ui/base/cocoa/window_size_constants.h
@@ -0,0 +1,20 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_BASE_COCOA_WINDOW_SIZE_CONSTANTS_H_
+#define UI_BASE_COCOA_WINDOW_SIZE_CONSTANTS_H_
+#pragma once
+
+#include "ui/base/ui_export.h"
+
+#import <Foundation/Foundation.h>
+
+namespace ui {
+
+// It is not valid to make a zero-sized window. Use this constant instead.
+UI_EXPORT extern const NSRect kWindowSizeDeterminedLater;
+
+} // namespace ui
+
+#endif // UI_BASE_COCOA_WINDOW_SIZE_CONSTANTS_H_
« no previous file with comments | « ui/base/cocoa/underlay_opengl_hosting_window.mm ('k') | ui/base/cocoa/window_size_constants.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698