/external/chromium_org/ash/wm/ |
H A D | window_state_unittest.cc | 14 #include "ui/aura/window.h" 55 // Test that a window gets properly snapped to the display's edges in a 67 scoped_ptr<aura::Window> window( 69 WindowState* window_state = GetWindowState(window.get()); 77 EXPECT_EQ(expected.ToString(), window->GetBoundsInScreen().ToString()); 82 EXPECT_EQ(expected.ToString(), window->GetBoundsInScreen().ToString()); 84 // Move the window to the secondary display. 85 window->SetBoundsInScreen(gfx::Rect(600, 0, 100, 100), 95 EXPECT_EQ(expected.ToString(), window->GetBoundsInScreen().ToString()); 99 EXPECT_EQ(expected.ToString(), window [all...] |
H A D | drag_details.cc | 8 #include "ui/aura/window.h" 44 DragDetails::DragDetails(aura::Window* window, argument 48 : initial_state_type(wm::GetWindowState(window)->GetStateType()), 49 initial_bounds_in_parent(window->bounds()), 51 initial_opacity(window->layer()->opacity()), 62 should_attach_to_shelf(window->type() == ui::wm::WINDOW_TYPE_PANEL && 63 wm::GetWindowState(window)->panel_attached()) { 64 wm::WindowState* window_state = wm::GetWindowState(window);
|
H A D | window_util_unittest.cc | 10 #include "ui/aura/window.h" 31 scoped_ptr<aura::Window> window( 34 wm::WindowState* window_state = wm::GetWindowState(window.get()); 37 wm::CenterWindow(window.get()); 38 // Centring window is considered as a user's action. 40 EXPECT_EQ("200,126 100x100", window->bounds().ToString()); 41 EXPECT_EQ("200,126 100x100", window->GetBoundsInScreen().ToString()); 42 window->SetBoundsInScreen(gfx::Rect(600, 0, 100, 100), 44 wm::CenterWindow(window.get()); 45 EXPECT_EQ("250,126 100x100", window [all...] |
H A D | system_modal_container_layout_manager.cc | 18 #include "ui/aura/window.h" 37 // If this is set to true, the window will get centered. 40 // The center point of the window can diverge this much from the center point 101 aura::Window* window, 107 if (window->GetProperty(aura::client::kModalKey) != ui::MODAL_TYPE_NONE) { 108 AddModalWindow(window); 110 RemoveModalWindow(window); 111 Shell::GetInstance()->OnModalWindowRemoved(window); 116 aura::Window* window) { 117 if (modal_background_ && modal_background_->GetNativeView() == window) 100 OnWindowPropertyChanged( aura::Window* window, const void* key, intptr_t old) argument 115 OnWindowDestroying( aura::Window* window) argument 130 CanWindowReceiveEvents( aura::Window* window) argument 200 IsModalBackground( aura::Window* window) argument 216 AddModalWindow(aura::Window* window) argument 231 RemoveModalWindow( aura::Window* window) argument 265 GetCenteredAndOrFittedBounds( const aura::Window* window) argument [all...] |
/external/chromium_org/ash/shelf/ |
H A D | shelf_window_watcher.h | 50 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 67 virtual void OnWindowParentChanged(aura::Window* window, 69 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; 77 // Creates a ShelfItem for |window| that has ShelfItemDetails. 78 void AddShelfItem(aura::Window* window); 80 // Removes a ShelfItem for |window|. 81 void RemoveShelfItem(aura::Window* window); 89 // Updates the status of ShelfItem for |window|. 90 void UpdateShelfItemStatus(aura::Window* window, bool is_active); 92 // Returns the index of ShelfItem associated with |window| [all...] |
/external/chromium_org/ui/aura/ |
H A D | window_targeter_unittest.cc | 10 #include "ui/aura/window.h" 15 // Always returns the same window. 18 explicit StaticWindowTargeter(aura::Window* window) argument 19 : window_(window) {} 43 gfx::RectF GetEffectiveVisibleBoundsInRootWindow(Window* window) { argument 44 gfx::RectF bounds = gfx::Rect(window->bounds().size()); 45 Window* root = window->GetRootWindow(); 46 CHECK(window->layer()); 49 if (!window->layer()->GetTargetTransformRelativeTo(root->layer(), &transform)) 57 scoped_ptr<Window> window(CreateNormalWindo [all...] |
/external/chromium_org/extensions/browser/api/app_current_window_internal/ |
H A D | app_current_window_internal_api.h | 18 // Invoked with the current app window. 19 virtual bool RunWithWindow(AppWindow* window) = 0; 33 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 44 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 55 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 66 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 77 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 88 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 99 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 110 virtual bool RunWithWindow(AppWindow* window) OVERRID [all...] |
/external/chromium_org/chrome/browser/devtools/ |
H A D | devtools_window_testing.h | 33 // Closes the window like it was user-initiated. 34 static void CloseDevToolsWindow(DevToolsWindow* window); 35 // Blocks until window is closed. 36 static void CloseDevToolsWindowSync(DevToolsWindow* window); 38 static DevToolsWindowTesting* Get(DevToolsWindow* window); 49 explicit DevToolsWindowTesting(DevToolsWindow* window); 50 static void WaitForDevToolsWindowLoad(DevToolsWindow* window); 51 static void WindowClosed(DevToolsWindow* window); 52 static DevToolsWindowTesting* Find(DevToolsWindow* window);
|
/external/chromium_org/chrome/browser/extensions/ |
H A D | window_controller_list.cc | 30 void WindowControllerList::AddExtensionWindow(WindowController* window) { argument 31 windows_.push_back(window); 33 OnWindowControllerAdded(window)); 36 void WindowControllerList::RemoveExtensionWindow(WindowController* window) { argument 38 windows_.begin(), windows_.end(), window); 42 OnWindowControllerRemoved(window)); 76 // Returns either the focused window (if any), or the last window in the list. 81 if (result->window()->IsActive()) 82 break; // use focused window [all...] |
/external/chromium_org/chrome/browser/ui/ash/multi_user/ |
H A D | multi_user_context_menu_chromeos_unittest.cc | 34 aura::Window* window() { return window_; } function in class:ash::test::MultiUserContextMenuChromeOSTest 47 // A window which can be used for testing. 75 // Check that an unowned window will never create a menu. 77 EXPECT_EQ(NULL, CreateMultiUserContextMenu(window()).get()); 81 EXPECT_EQ(NULL, CreateMultiUserContextMenu(window()).get()); 84 // Check that an owned window will never create a menu. 86 // Make the window owned and check that there is no menu (since only a single 88 multi_user_window_manager()->SetWindowOwner(window(), "A"); 89 EXPECT_EQ(NULL, CreateMultiUserContextMenu(window()).get()); 94 scoped_ptr<ui::MenuModel> menu = CreateMultiUserContextMenu(window()); [all...] |
H A D | multi_user_window_manager.h | 28 // determining the window ownership from browser and application windows and 31 // only be presented on one desktop. If a window should get moved to another 37 // - There is no need to "unregister" a window from an owner. The class will 38 // clean automatically all references of that window upon destruction. 43 // Observer to notify of any window owner changes. 46 // Invoked when the new window is created and the manager start to track its 48 virtual void OnOwnerEntryAdded(aura::Window* window) {} argument 49 // Invoked when the owner of the window tracked by the manager is changed. 50 virtual void OnOwnerEntryChanged(aura::Window* window) {} argument 51 // Invoked when the window i 53 OnOwnerEntryRemoved(aura::Window* window) argument [all...] |
/external/chromium_org/content/test/plugin/ |
H A D | plugin_window_size_test.cc | 16 if (pNPWindow->window == NULL) 19 HWND window = reinterpret_cast<HWND>(pNPWindow->window); 20 if (!::IsWindow(window)) { 33 ::GetClientRect(window, &client_rect); 35 SetError("The client rect of the plugin window is empty. Test failed"); 42 ::GetWindowRect(window, &window_rect_from_os); 45 ::ScreenToClient(GetParent(window), &origin_from_os);
|
H A D | plugin_javascript_open_popup.h | 14 // instantiated in a popup window. The plugin instance needs to 15 // have a valid parent window. 22 virtual NPError SetWindow(NPWindow* window) OVERRIDE; 29 // popup window. It verifies that the plugin instance has a valid parent. 35 virtual NPError SetWindow(NPWindow* window) OVERRIDE; 38 // Do a platform-specific validation of the passed-in |window|. 39 // E.g. on Windows, verifies window->window is a reasonable HWND. 41 bool CheckWindow(NPWindow* window);
|
/external/chromium_org/ui/snapshot/ |
H A D | snapshot_aura.cc | 12 #include "ui/aura/window.h" 26 bool GrabWindowSnapshot(gfx::NativeWindow window, argument 34 gfx::NativeWindow window, 40 window->layer()->RequestCopyOfOutput(request.Pass()); 44 gfx::NativeWindow window, 49 MakeAsyncCopyRequest(window, 58 gfx::NativeWindow window, 62 MakeAsyncCopyRequest(window, 33 MakeAsyncCopyRequest( gfx::NativeWindow window, const gfx::Rect& source_rect, const cc::CopyOutputRequest::CopyOutputRequestCallback& callback) argument 43 GrabWindowSnapshotAndScaleAsync( gfx::NativeWindow window, const gfx::Rect& source_rect, const gfx::Size& target_size, scoped_refptr<base::TaskRunner> background_task_runner, const GrabWindowSnapshotAsyncCallback& callback) argument 57 GrabWindowSnapshotAsync( gfx::NativeWindow window, const gfx::Rect& source_rect, scoped_refptr<base::TaskRunner> background_task_runner, const GrabWindowSnapshotAsyncPNGCallback& callback) argument
|
/external/chromium_org/ui/wm/core/ |
H A D | default_activation_client.h | 28 // itself when the root window it is associated with is destroyed. 39 virtual void ActivateWindow(aura::Window* window) OVERRIDE; 40 virtual void DeactivateWindow(aura::Window* window) OVERRIDE; 42 virtual aura::Window* GetActivatableWindow(aura::Window* window) OVERRIDE; 43 virtual aura::Window* GetToplevelWindow(aura::Window* window) OVERRIDE; 44 virtual bool CanActivateWindow(aura::Window* window) const OVERRIDE; 47 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; 53 void RemoveActiveWindow(aura::Window* window); 55 // This class explicitly does NOT store the active window in a window propert [all...] |
H A D | transient_window_manager.h | 18 // TransientWindowManager manages the set of transient children for a window 35 // Returns the TransientWindowManager for |window|. This never returns NULL. 36 static TransientWindowManager* Get(aura::Window* window); 38 // Returns the TransientWindowManager for |window| only if it already exists. 40 static const TransientWindowManager* Get(const aura::Window* window); 55 // That is, when the stacking order of a window changes 58 // of stacking a transient as the result of window stacking changing. 62 explicit TransientWindowManager(aura::Window* window); 64 // Stacks transient descendants of this window that are its siblings just 69 virtual void OnWindowParentChanged(aura::Window* window, [all...] |
/external/deqp/framework/platform/android/ |
H A D | tcuAndroidTestActivity.cpp | 27 #include <android/window.h> 61 void TestThread::onWindowCreated (ANativeWindow* window) argument 63 m_platform.getWindowRegistry().addWindow(window); 66 void TestThread::onWindowDestroyed (ANativeWindow* window) argument 68 m_platform.getWindowRegistry().destroyWindow(window); 71 void TestThread::onWindowResized (ANativeWindow* window) argument 73 DE_UNREF(window); 74 print("Warning: Native window was resized, results may be undefined"); 95 // Set up window flags.
|
/external/chromium_org/ash/wm/maximize_mode/ |
H A D | maximize_mode_window_manager.h | 28 // A window manager which - when created - will force all windows into maximized 31 // behind the window so that no other windows are visible and/or obscured. 45 // Adds a window which needs to be maximized. This is used by other window 48 // The call gets ignored if the window was already or should not be handled. 49 void AddWindow(aura::Window* window); 51 // Called from a window state object when it gets destroyed. 52 void WindowStateDestroyed(aura::Window* window); 59 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 60 virtual void OnWindowAdded(aura::Window* window) OVERRID [all...] |
/external/chromium_org/ui/aura/test/ |
H A D | aura_test_base.cc | 10 #include "ui/aura/window.h" 81 Window* window = new Window( local 84 window->set_id(id); 85 window->Init(aura::WINDOW_LAYER_TEXTURED); 86 parent->AddChild(window); 87 window->SetBounds(gfx::Rect(0, 0, 100, 100)); 88 window->Show(); 89 return window; 96 void AuraTestBase::ParentWindow(Window* window) { argument 97 client::ParentWindowWithContext(window, root_windo [all...] |
/external/chromium_org/ui/views/widget/desktop_aura/ |
H A D | x11_topmost_window_finder.cc | 10 #include "ui/aura/window.h" 53 aura::Window* window = 55 if (window) { 56 if (ShouldStopIteratingAtLocalProcessWindow(window)) { 71 aura::Window* window) { 72 if (ignore_.find(window) != ignore_.end()) 75 // Currently |window|->IsVisible() always returns true. 77 if (!window->IsVisible()) 82 window->GetHost()->GetAcceleratedWidget()); 91 aura::client::GetScreenPositionClient(window 70 ShouldStopIteratingAtLocalProcessWindow( aura::Window* window) argument [all...] |
/external/chromium_org/ash/test/ |
H A D | mirror_window_test_api.cc | 18 aura::Window* window = Shell::GetInstance() local 22 return window ? window->GetHost() : NULL;
|
/external/chromium_org/ash/wm/overview/ |
H A D | window_selector_panels.cc | 14 #include "ui/aura/window.h" 25 // widget for a panel window when entering / leaving overview mode, as well as 26 // to add a transparent button for each panel window. 29 explicit ScopedTransformPanelWindow(aura::Window* window); 41 // Returns the panel window bounds after the transformation. 49 ScopedTransformPanelWindow::ScopedTransformPanelWindow(aura::Window* window) argument 50 : ScopedTransformOverviewWindow(window) { 58 window_button_.reset(new TransparentActivateWindowButton(window())); 71 window()->GetRootWindow(), window() 101 AddWindow(aura::Window* window) argument 111 HasSelectableWindow(const aura::Window* window) argument 129 RestoreWindowOnExit(aura::Window* window) argument 143 RemoveWindow(const aura::Window* window) argument [all...] |
/external/chromium_org/ash/wm/workspace/ |
H A D | workspace_event_handler_unittest.cc | 17 #include "ui/aura/window.h" 40 aura::Window* window = new aura::Window(delegate); local 41 window->SetType(ui::wm::WINDOW_TYPE_NORMAL); 42 window->Init(aura::WINDOW_LAYER_TEXTURED); 43 ParentWindowInPrimaryRootWindow(window); 44 window->SetBounds(bounds); 45 window->Show(); 46 return window; 53 // Keeps track of the properties changed of a particular window. 56 explicit WindowPropertyObserver(aura::Window* window) argument [all...] |
/external/chromium_org/chrome/browser/ui/webui/interstitials/ |
H A D | interstitial_ui_browsertest.cc | 28 DevToolsWindow* window = local 30 EXPECT_TRUE(window); 31 DevToolsWindowTesting::CloseDevToolsWindowSync(window);
|
/external/chromium_org/content/shell/tools/plugin/Tests/ |
H A D | LeakWindowScriptableObject.cpp | 23 // Get a new reference to the window script object. 24 NPObject* window; variable 25 if (NPN_GetValue(NPNVWindowNPObject, &window) != NPERR_NO_ERROR) { 26 log("Fail: Cannot fetch window script object"); 30 // Get another reference to the same object via window.self. 33 if (!NPN_GetProperty(window, self_name, &window_self_variant)) { 34 log("Fail: Cannot query window.self"); 38 log("Fail: window.self is not an object"); 42 // Leak both references to the window script object. 47 static PluginTest::Register<LeakWindowScriptableObject> leakWindowScriptableObject("leak-window [all...] |