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

Unified Diff: views/window/window_win.h

Issue 6386009: Remove app/win/win_util.h,cc etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with NSApp changes in r73581 Created 9 years, 11 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/window/custom_frame_view.cc ('k') | views/window/window_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/window_win.h
diff --git a/views/window/window_win.h b/views/window/window_win.h
index 37d56d13a7d9553d2f471d2d9b27e0fd565c54fe..6b20667ae32a7f1e605d616758f9c33655825aac 100644
--- a/views/window/window_win.h
+++ b/views/window/window_win.h
@@ -10,12 +10,24 @@
#include "views/window/window.h"
namespace gfx {
+class Font;
class Point;
class Size;
};
namespace views {
+namespace internal {
+// This is exposed only for testing
+
+// Adjusts the value of |child_rect| if necessary to ensure that it is
+// completely visible within |parent_rect|.
+void EnsureRectIsVisibleInRect(const gfx::Rect& parent_rect,
+ gfx::Rect* child_rect,
+ int padding);
+
+} // namespace internal
+
class Client;
class WindowDelegate;
@@ -45,10 +57,6 @@ class WindowWin : public WidgetWin,
// Executes the specified SC_command.
void ExecuteSystemMenuCommand(int command);
- // Called when the frame type could possibly be changing (theme change or
- // DWM composition change).
- void FrameTypeChanged();
-
// Accessors and setters for various properties.
HWND owning_window() const { return owning_hwnd_; }
void set_focus_on_creation(bool focus_on_creation) {
@@ -89,6 +97,10 @@ class WindowWin : public WidgetWin,
virtual ClientView* GetClientView() const;
virtual gfx::NativeWindow GetNativeWindow() const;
virtual bool ShouldUseNativeFrame() const;
+ virtual void FrameTypeChanged();
+
+ // Returns the system set window title font.
+ static gfx::Font GetWindowTitleFont();
protected:
friend Window;
« no previous file with comments | « views/window/custom_frame_view.cc ('k') | views/window/window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698