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

Side by Side Diff: chrome/test/base/test_browser_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_TEST_BASE_TEST_BROWSER_WINDOW_H_ 5 #ifndef CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_
6 #define CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ 6 #define CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 18 matching lines...) Expand all
29 virtual void Show() OVERRIDE {} 29 virtual void Show() OVERRIDE {}
30 virtual void ShowInactive() OVERRIDE {} 30 virtual void ShowInactive() OVERRIDE {}
31 virtual void Hide() OVERRIDE {} 31 virtual void Hide() OVERRIDE {}
32 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE {} 32 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE {}
33 virtual void Close() OVERRIDE {} 33 virtual void Close() OVERRIDE {}
34 virtual void Activate() OVERRIDE {} 34 virtual void Activate() OVERRIDE {}
35 virtual void Deactivate() OVERRIDE {} 35 virtual void Deactivate() OVERRIDE {}
36 virtual bool IsActive() const OVERRIDE; 36 virtual bool IsActive() const OVERRIDE;
37 virtual void FlashFrame(bool flash) OVERRIDE {} 37 virtual void FlashFrame(bool flash) OVERRIDE {}
38 virtual bool IsAlwaysOnTop() const OVERRIDE; 38 virtual bool IsAlwaysOnTop() const OVERRIDE;
39 virtual gfx::Rect ContentBoundsForWindowBounds(
40 const gfx::Rect& window_bounds) const OVERRIDE;
41 virtual gfx::Rect WindowBoundsForContentBounds(
42 const gfx::Rect& content_bounds) const OVERRIDE;
39 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; 43 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE;
40 virtual BrowserWindowTesting* GetBrowserWindowTesting() OVERRIDE; 44 virtual BrowserWindowTesting* GetBrowserWindowTesting() OVERRIDE;
41 virtual StatusBubble* GetStatusBubble() OVERRIDE; 45 virtual StatusBubble* GetStatusBubble() OVERRIDE;
42 virtual void UpdateTitleBar() OVERRIDE {} 46 virtual void UpdateTitleBar() OVERRIDE {}
43 virtual void BookmarkBarStateChanged( 47 virtual void BookmarkBarStateChanged(
44 BookmarkBar::AnimateChangeType change_type) OVERRIDE {} 48 BookmarkBar::AnimateChangeType change_type) OVERRIDE {}
45 virtual void UpdateDevTools() OVERRIDE {} 49 virtual void UpdateDevTools() OVERRIDE {}
46 virtual void UpdateLoadingAnimations(bool should_animate) OVERRIDE {} 50 virtual void UpdateLoadingAnimations(bool should_animate) OVERRIDE {}
47 virtual void SetStarredState(bool is_starred) OVERRIDE {} 51 virtual void SetStarredState(bool is_starred) OVERRIDE {}
48 virtual void ZoomChangedForActiveTab(bool can_show_bubble) OVERRIDE {} 52 virtual void ZoomChangedForActiveTab(bool can_show_bubble) OVERRIDE {}
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 156
153 namespace chrome { 157 namespace chrome {
154 158
155 // Helpers that handle the lifetime of TestBrowserWindow instances. 159 // Helpers that handle the lifetime of TestBrowserWindow instances.
156 Browser* CreateBrowserWithTestWindowForProfile(Profile* profile); 160 Browser* CreateBrowserWithTestWindowForProfile(Profile* profile);
157 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); 161 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params);
158 162
159 } // namespace chrome 163 } // namespace chrome
160 164
161 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ 165 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698