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

Side by Side Diff: chrome/browser/ui/base_window.h

Issue 11369237: Add a way to fetch window frame metrics from NativeShellWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comments Created 8 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_BASE_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_BASE_WINDOW_H_
6 #define CHROME_BROWSER_UI_BASE_WINDOW_H_ 6 #define CHROME_BROWSER_UI_BASE_WINDOW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 // Sets the window's size and position to the specified values. 73 // Sets the window's size and position to the specified values.
74 virtual void SetBounds(const gfx::Rect& bounds) = 0; 74 virtual void SetBounds(const gfx::Rect& bounds) = 0;
75 75
76 // Flashes the taskbar item associated with this window. 76 // Flashes the taskbar item associated with this window.
77 // Set |flash| to true to initiate flashing, false to stop flashing. 77 // Set |flash| to true to initiate flashing, false to stop flashing.
78 virtual void FlashFrame(bool flash) = 0; 78 virtual void FlashFrame(bool flash) = 0;
79 79
80 // Returns true if a window is set to be always on top. 80 // Returns true if a window is set to be always on top.
81 virtual bool IsAlwaysOnTop() const = 0; 81 virtual bool IsAlwaysOnTop() const = 0;
82
83 // Converts from window bounds (i.e. including window decorations) to content
84 // bounds (i.e. not including window decorations).
85 virtual gfx::Rect ContentBoundsForWindowBounds(
86 const gfx::Rect& window_bounds) const = 0;
87
88 // Converts from content bounds (i.e. not including window decorations) to
89 // window bounds (i.e. including window decorations).
90 virtual gfx::Rect WindowBoundsForContentBounds(
91 const gfx::Rect& content_bounds) const = 0;
82 }; 92 };
83 93
84 #endif // CHROME_BROWSER_UI_BASE_WINDOW_H_ 94 #endif // CHROME_BROWSER_UI_BASE_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | chrome/browser/ui/gtk/browser_window_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698