HomeSort by relevance Sort by last modified time
    Searched refs:window_state (Results 1 - 25 of 76) sorted by null

1 2 3 4

  /external/chromium_org/ash/accelerators/
accelerator_commands.cc 10 #include "ash/wm/window_state.h"
26 wm::WindowState* window_state = wm::GetWindowState(window); local
27 if (!window_state->CanMinimize())
29 window_state->Minimize();
34 wm::WindowState* window_state = wm::GetActiveWindowState(); local
35 if (!window_state)
40 if (window_state->IsFullscreen())
43 window_state->ToggleMaximized();
47 wm::WindowState* window_state = wm::GetActiveWindowState(); local
48 if (window_state)
    [all...]
accelerator_commands_unittest.cc 8 #include "ash/wm/window_state.h"
25 wm::WindowState* window_state = wm::GetWindowState(window.get()); local
26 window_state->Activate();
29 EXPECT_TRUE(window_state->IsMinimized());
30 EXPECT_FALSE(window_state->IsNormalShowState());
33 EXPECT_FALSE(window_state->IsMinimized());
34 EXPECT_TRUE(window_state->IsNormalShowState());
  /external/chromium_org/ash/wm/
window_state_delegate.cc 16 bool WindowStateDelegate::ToggleFullscreen(WindowState* window_state) {
base_layout_manager.cc 13 #include "ash/wm/window_state.h"
71 wm::WindowState* window_state = wm::GetWindowState(child); local
72 window_state->AddObserver(this);
76 if (window_state->IsMaximizedOrFullscreen())
77 UpdateBoundsFromShowState(window_state);
91 wm::WindowState* window_state = wm::GetWindowState(child); local
93 if (visible && window_state->IsMinimized())
94 window_state->Unminimize();
100 wm::WindowState* window_state = wm::GetWindowState(child); local
102 if (window_state->IsMaximized()
131 wm::WindowState* window_state = wm::GetWindowState(gained_active); local
    [all...]
window_state_delegate.h 26 virtual bool ToggleFullscreen(WindowState* window_state);
window_state_observer.h 21 virtual void OnWindowShowTypeChanged(WindowState* window_state,
window_util.cc 13 #include "ash/wm/window_state.h"
60 wm::WindowState* window_state = wm::GetWindowState(window); local
61 if (!window_state->IsNormalShowState())
67 if (window_state->IsSnapped()) {
68 if (window_state->HasRestoreBounds())
69 size = window_state->GetRestoreBoundsInScreen().size();
71 window_state->SetRestoreBoundsInScreen(center);
72 window_state->Restore();
custom_frame_view_ash.cc 14 #include "ash/wm/window_state.h"
52 ash::wm::WindowState* window_state,
70 window_state_ = window_state;
84 virtual bool ToggleFullscreen(ash::wm::WindowState* window_state) OVERRIDE {
85 bool enter_fullscreen = !window_state->IsFullscreen();
87 window_state->window()->SetProperty(aura::client::kShowStateKey,
90 window_state->Restore();
107 ash::wm::WindowState* window_state,
109 if (!window_state->IsFullscreen() &&
110 !window_state->IsMinimized() &
401 wm::WindowState* window_state = wm::GetWindowState(frame->GetNativeWindow()); local
    [all...]
  /external/chromium_org/chrome/browser/ui/ash/
accelerator_commands_browsertest.cc 11 #include "ash/wm/window_state.h"
47 // Returns true if |window_state|'s window is in immersive fullscreen. Infer
52 bool IsInImmersiveFullscreen(ash::wm::WindowState* window_state) {
53 return window_state->IsFullscreen() &&
54 !window_state->hide_shelf_when_fullscreen();
70 ash::wm::WindowState* window_state = ash::wm::GetActiveWindowState(); local
71 ASSERT_TRUE(window_state);
74 EXPECT_FALSE(window_state->IsMaximized());
76 EXPECT_TRUE(window_state->IsMaximized());
78 EXPECT_FALSE(window_state->IsMaximized())
162 ash::wm::WindowState* window_state = local
348 ash::wm::WindowState* window_state = local
373 ash::wm::WindowState* window_state = local
    [all...]
  /external/chromium_org/ash/wm/workspace/
workspace_layout_manager.cc 17 #include "ash/wm/window_state.h"
39 void MoveToDisplayForRestore(wm::WindowState* window_state) {
40 if (!window_state->HasRestoreBounds())
42 const gfx::Rect& restore_bounds = window_state->GetRestoreBoundsInScreen();
51 window_state->window()).bounds();
60 if (new_root != window_state->window()->GetRootWindow()) {
62 Shell::GetContainer(new_root, window_state->window()->parent()->id());
63 new_container->AddChild(window_state->window());
123 wm::WindowState* window_state = wm::GetWindowState(child); local
124 if (window_state->is_dragged())
    [all...]
workspace_event_handler.cc 12 #include "ash/wm/window_state.h"
27 void SingleAxisMaximize(wm::WindowState* window_state,
29 window_state->SaveCurrentBoundsForRestore();
30 window_state->SetBoundsInScreen(maximize_rect_in_screen);
33 void SingleAxisUnmaximize(wm::WindowState* window_state,
35 window_state->SetBoundsInScreen(restore_bounds_in_screen);
36 window_state->ClearRestoreBounds();
39 void ToggleMaximizedState(wm::WindowState* window_state) {
40 if (window_state->HasRestoreBounds()) {
41 if (window_state->GetShowState() == ui::SHOW_STATE_NORMAL)
    [all...]
workspace_layout_manager.h 61 virtual void OnWindowShowTypeChanged(wm::WindowState* window_state,
66 virtual void ShowStateChanged(wm::WindowState* window_state,
71 wm::WindowState* window_state,
74 void AdjustWindowBoundsWhenAdded(wm::WindowState* window_state);
85 void UpdateBoundsFromShowState(wm::WindowState* window_state,
88 // If |window_state| is maximized or fullscreen the bounds of the
90 bool SetMaximizedOrFullscreenBounds(wm::WindowState* window_state);
93 // workspace if the window represented by |window_state| is side snapped.
94 void AdjustSnappedBounds(wm::WindowState* window_state, gfx::Rect* bounds);
snap_sizer_unittest.cc 11 #include "ash/wm/window_state.h"
39 wm::WindowState* window_state = wm::GetWindowState(window.get()); local
40 SnapSizer::SnapWindow(window_state, SnapSizer::LEFT_EDGE);
48 SnapSizer::SnapWindow(window_state, SnapSizer::RIGHT_EDGE);
58 SnapSizer::SnapWindow(window_state, SnapSizer::RIGHT_EDGE);
66 SnapSizer::SnapWindow(window_state, SnapSizer::LEFT_EDGE);
89 wm::WindowState* window_state = wm::GetWindowState(window.get()); local
90 EXPECT_TRUE(window_state->CanSnap());
91 SnapSizer::SnapWindow(window_state, SnapSizer::RIGHT_EDGE);
101 EXPECT_FALSE(window_state->CanSnap())
119 wm::WindowState* window_state = wm::GetWindowState(window.get()); local
195 wm::WindowState* window_state = wm::GetWindowState(window.get()); local
293 wm::WindowState* window_state = wm::GetWindowState(window.get()); local
332 wm::WindowState* window_state = wm::GetWindowState(window.get()); local
370 wm::WindowState* window_state = wm::GetWindowState(window.get()); local
    [all...]
workspace_layout_manager_unittest.cc 16 #include "ash/wm/window_state.h"
96 wm::WindowState* window_state = wm::GetWindowState(window.get()); local
99 window_state->SetRestoreBoundsInScreen(gfx::Rect(0, 0, 100, 100));
100 window_state->Minimize();
101 window_state->Restore();
102 EXPECT_EQ("0,0 100x100", window_state->GetRestoreBoundsInScreen().ToString());
112 window_state->Minimize();
114 window_state->SetRestoreBoundsInScreen(gfx::Rect(0, 0, 100, 100));
115 window_state->Restore();
120 window_state->Minimize()
155 wm::WindowState* window_state = wm::GetWindowState(window.get()); local
202 wm::WindowState* window_state = wm::GetWindowState(window.get()); local
252 wm::WindowState* window_state = wm::GetWindowState(window.get()); local
327 wm::WindowState* window_state = wm::GetWindowState(window.get()); local
347 wm::WindowState* window_state = wm::GetWindowState(window.get()); local
    [all...]
workspace_event_handler.h 40 void HandleVerticalResizeDoubleClick(wm::WindowState* window_state,
snap_sizer.cc 12 #include "ash/wm/window_state.h"
125 void SnapWindowToBounds(wm::WindowState* window_state,
129 window_state->SnapLeft(snap_bounds);
131 window_state->SnapRight(snap_bounds);
137 SnapSizer::SnapSizer(wm::WindowState* window_state,
141 : window_state_(window_state),
152 usable_width_(BuildIdealWidthList(window_state->window())) {
160 void SnapSizer::SnapWindow(wm::WindowState* window_state,
162 if (!window_state->CanSnap())
164 internal::SnapSizer sizer(window_state, gfx::Point(), edge
    [all...]
  /external/chromium_org/chrome/browser/ui/views/frame/
browser_frame_ash.cc 7 #include "ash/wm/window_state.h"
33 virtual bool ToggleFullscreen(ash::wm::WindowState* window_state) OVERRIDE {
34 DCHECK(window_state->IsFullscreen() || window_state->CanMaximize());
36 if (!window_state->IsFullscreen() && !window_state->CanMaximize())
61 ash::wm::WindowState* window_state = local
63 window_state->SetDelegate(
78 window_state->set_animate_to_fullscreen(false);
84 window_state->set_can_consume_system_keys(browser->is_app())
    [all...]
  /external/chromium_org/ash/wm/gestures/
system_pinch_handler.cc 12 #include "ash/wm/window_state.h"
47 wm::WindowState* window_state = wm::GetWindowState(target_);
54 if (!window_state->IsMaximizedOrFullscreen())
55 window_state->Maximize();
57 if (window_state->IsMaximizedOrFullscreen()) {
58 window_state->Restore();
60 window_state->Minimize();
89 internal::SnapSizer::SnapWindow(window_state,
93 if (!window_state->IsMaximizedOrFullscreen())
94 window_state->Maximize()
121 wm::WindowState* window_state = wm::GetWindowState(window); local
    [all...]
two_finger_drag_handler.cc 8 #include "ash/wm/window_state.h"
96 wm::WindowState* window_state = wm::GetWindowState(target); local
100 if (!in_gesture_drag_ && window_state->IsNormalShowState() &&
124 window_state->IsNormalShowState();
127 // it was created elsewhere and can be found in |window_state|.
129 window_resizer_.get() : window_state->window_resizer();
156 if (window_state->CanMaximize())
157 window_state->Maximize();
158 } else if (event.details().swipe_down() && window_state->CanMinimize()) {
159 window_state->Minimize()
    [all...]
  /external/chromium_org/ash/shelf/
shelf_window_watcher_item_delegate.cc 8 #include "ash/wm/window_state.h"
29 wm::WindowState* window_state = wm::GetWindowState(window_); local
30 if (window_state->IsActive()) {
35 window_state->Minimize();
38 window_state->Activate();
  /external/chromium_org/chrome/browser/extensions/
window_controller.cc 41 std::string window_state; local
43 window_state = keys::kShowStateValueMinimized;
45 window_state = keys::kShowStateValueFullscreen;
47 window_state = keys::kShowStateValueMaximized;
49 window_state = keys::kShowStateValueNormal;
51 result->SetString(keys::kShowStateKey, window_state);
  /external/qemu/distrib/sdl-1.2.15/src/video/riscos/
SDL_riscosmouse.c 228 int window_state[9]; local
232 window_state[0] = this->hidden->window_handle;
233 regs.r[1] = (unsigned int)window_state;
236 osX = (x << this->hidden->xeig) + window_state[1];
237 osY = window_state[4] - (y << this->hidden->yeig);
282 unsigned char window_state[36]; local
284 *((int *)window_state) = this->hidden->window_handle;
285 regs.r[1] = (unsigned int)window_state;
288 block[1] = window_state[4];
289 block[2] = window_state[5]
    [all...]
SDL_riscossprite.c 215 int window_state[9]; local
224 window_state[0] = this->hidden->window_handle;
225 regs.r[1] = (unsigned int)window_state;
228 currWidth = window_state[3] - window_state[1];
229 currHeight = window_state[4] - window_state[2];
  /external/chromium_org/ash/wm/caption_buttons/
frame_maximize_button_unittest.cc 12 #include "ash/wm/window_state.h"
168 wm::WindowState* window_state = local
174 window_state->window()->GetRootWindow(), center);
176 EXPECT_FALSE(window_state->IsMaximized());
180 EXPECT_TRUE(window_state->IsMaximized());
186 EXPECT_FALSE(window_state->IsMaximized());
189 EXPECT_TRUE(window_state->IsMaximized());
192 EXPECT_FALSE(window_state->IsMaximized());
195 EXPECT_TRUE(window_state->IsMaximized());
198 EXPECT_FALSE(window_state->IsMaximized())
216 wm::WindowState* window_state = wm::GetWindowState(window); local
352 wm::WindowState* window_state = wm::GetWindowState(window); local
510 wm::WindowState* window_state = wm::GetWindowState(window); local
585 wm::WindowState* window_state = wm::GetWindowState(window); local
672 wm::WindowState* window_state = wm::GetWindowState(window); local
702 wm::WindowState* window_state = wm::GetWindowState(window); local
734 wm::WindowState* window_state = wm::GetWindowState(window); local
769 wm::WindowState* window_state = wm::GetWindowState(window); local
782 wm::WindowState* window_state = wm::GetWindowState(window); local
    [all...]
  /external/chromium_org/apps/
shell_window_geometry_cache.cc 54 ui::WindowShowState window_state) {
60 extension_data[window_id].window_state == window_state &&
69 extension_data[window_id].window_state = window_state;
116 DCHECK(it->second.window_state != ui::SHOW_STATE_DEFAULT);
125 value->SetInteger("state", it->second.window_state);
145 ui::WindowShowState* window_state) {
170 (window_state && window_data.window_state == ui::SHOW_STATE_DEFAULT)
    [all...]

Completed in 291 milliseconds

1 2 3 4